升级到Meteor 1.5.x后,摩卡测试中断

时间:2017-07-25 02:53:10

标签: javascript node.js testing meteor mocha

从1.4.4.2升级到Meteor 1.5.1后,当我运行meteor test时(运行正常),我收到此错误。

meteor create之后使用样板脚手架,我得到的错误是:

TypeError: module1.exportDefault is not a function
W20170724-19:29:39.142(-7)? (STDERR)
W20170724-19:29:39.142(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.setup.setupMochaClient.js (packages/practicalmeteor:mocha/meteor/src/setup/setupMochaClient.js:1:9)
W20170724-19:29:39.142(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-19:29:39.143(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-19:29:39.143(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.setup.index.js (packages/practicalmeteor:mocha/meteor/src/setup/index.js:1:150)
W20170724-19:29:39.143(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-19:29:39.144(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-19:29:39.144(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.index.js (packages/practicalmeteor:mocha/meteor/src/index.js:1:431)
W20170724-19:29:39.144(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-19:29:39.145(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-19:29:39.145(-7)? (STDERR)     at /private/var/folders/wz/73gq7k591wjbmk5zjf_1h5bnlwwdyw/T/meteor-test-runvsqg43/.meteor/local/build/programs/server/packages/practicalmeteor_mocha.js:8141:15

查看PACKAGES, METEOR_LIST, UPGRADE LOG, ERROR, PACKAGE.JSON

的要点

我试图找出造成问题的包裹,但到目前为止还没有运气。如果您已经弄清楚了,我感谢您在调试或解决方案方面的任何指导!

感谢。 :)

0 个答案:

没有答案