Testing meteor测试:尝试导入时出错

Testing meteor测试:尝试导入时出错,testing,meteor,Testing,Meteor,我正在尝试测试流星应用程序,就像流星网站上的angular教程一样 但是当我添加导入行时 import { Meteor } from 'meteor/meteor'; 当我运行meteor测试时,我得到以下错误: W20160405-15:13:36.894(0)? (STDERR) W20160405-15:13:36.894(0)? (STDERR) C:\Users\ys\AppData\Local\.meteor\packages\meteor-tool\1.3.1-rc.3\mt

我正在尝试测试流星应用程序,就像流星网站上的angular教程一样

但是当我添加导入行时

import { Meteor } from 'meteor/meteor';
当我运行meteor测试时,我得到以下错误:

W20160405-15:13:36.894(0)? (STDERR)
W20160405-15:13:36.894(0)? (STDERR) C:\Users\ys\AppData\Local\.meteor\packages\meteor-tool\1.3.1-rc.3\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
W20160405-15:13:36.895(0)? (STDERR)                                             throw(ex);
W20160405-15:13:36.895(0)? (STDERR)                                                   ^
W20160405-15:13:36.895(0)? (STDERR) ReferenceError: require is not defined
W20160405-15:13:36.896(0)? (STDERR)     at app\testing\add.test.js:5:21
W20160405-15:13:36.896(0)? (STDERR)     at app\testing\add.test.js:21:4
W20160405-15:13:36.896(0)? (STDERR)     at C:\Users\ys\AppData\Local\Temp\meteor-test-runxjisnu\.meteor\local\build\programs\server\boot.js:283:10
W20160405-15:13:36.896(0)? (STDERR)     at Array.forEach (native)
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
W20160405-15:13:36.896(0)? (STDERR)     at Function._.each._.forEach (C:\Users\ys\AppData\Local\.meteor\packages\meteor-tool\1.3.1-rc.3\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20160405-15:13:36.897(0)? (STDERR)     at C:\Users\ys\AppData\Local\Temp\meteor-test-runxjisnu\.meteor\local\build\programs\server\boot.js:133:5

当我删除导入行时,测试将按它应该的方式运行,但是没有导入“chai”(或类似的模块),我不知道如何让assert函数工作

你找到解决办法了吗?我想问题出在包裹上!在我添加了angular模板和ecmascript包(通过meteor add…)之后,它确实起了作用。因为之前,我没有ecmascript,我使用了另一个包来实现angular。