Open theodorDiaconu opened 6 years ago
Just use cultofcoders:mocha instead and it will work with 1.6.1. cheers.
The error above is related to #99 since Meteor 1.6.1 now relies on babel7 and implies CS2, see https://blog.meteor.com/announcing-meteor-1-6-1-50aad71da4e6
Hey @theodorDiaconu I did install the original practical package with the command meteor add practicalmeteor:mocha
. I got the same exception and after doing some research I came across with this issue.
Afterwards, I remove the package, remove the node modules from my project and install your package with meteor add cultofcoders:mocha
.
However, after running with meteor test --driver-package=practicalmeteor:mocha
I got the following exception. Any advice, please?
W20180214-18:12:14.467(-6)? (STDERR) /Users/Jair-MAC/.meteor/packages/meteor-tool/.1.6.1.1bnocg1.d5rd++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20180214-18:12:14.468(-6)? (STDERR) throw(ex);
W20180214-18:12:14.468(-6)? (STDERR) ^
W20180214-18:12:14.469(-6)? (STDERR)
W20180214-18:12:14.469(-6)? (STDERR) Error: There is already a collection named "mochaServerRunEvents"
W20180214-18:12:14.469(-6)? (STDERR) at new Collection (packages/mongo/collection.js:122:15)
W20180214-18:12:14.470(-6)? (STDERR) at new MochaRunner (packages/practicalmeteor_mocha/meteor/src/lib/MochaRunner.coffee:28:30)
W20180214-18:12:14.470(-6)? (STDERR) at Function.MochaRunner.coffee.js.MochaRunner.get (packages/practicalmeteor_mocha/meteor/src/lib/MochaRunner.coffee:17:33)
W20180214-18:12:14.470(-6)? (STDERR) at MochaRunner.coffee.js (packages/practicalmeteor_mocha/meteor/src/lib/MochaRunner.coffee:179:30)
W20180214-18:12:14.470(-6)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
W20180214-18:12:14.471(-6)? (STDERR) at require (packages/modules-runtime.js:238:16)
W20180214-18:12:14.471(-6)? (STDERR) at MochaRunner.coffee (/private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/packages/practicalmeteor_mocha.js:156:14)
W20180214-18:12:14.471(-6)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
W20180214-18:12:14.471(-6)? (STDERR) at require (packages/modules-runtime.js:238:16)
W20180214-18:12:14.471(-6)? (STDERR) at index.js (packages/practicalmeteor:mocha/meteor/src/index.js:1:480)
W20180214-18:12:14.472(-6)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
W20180214-18:12:14.472(-6)? (STDERR) at require (packages/modules-runtime.js:238:16)
W20180214-18:12:14.473(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/packages/practicalmeteor_mocha.js:8198:15
W20180214-18:12:14.473(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/packages/practicalmeteor_mocha.js:8205:3
W20180214-18:12:14.473(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/boot.js:411:36
W20180214-18:12:14.473(-6)? (STDERR) at Array.forEach (<anonymous>)
W20180214-18:12:14.474(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/boot.js:220:19
W20180214-18:12:14.474(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/boot.js:471:5
W20180214-18:12:14.474(-6)? (STDERR) at Function.run (/private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/profile.js:510:12)
W20180214-18:12:14.475(-6)? (STDERR) at /private/var/folders/0j/8plp7g1d4cdf_8yt7vr91bqr0000gn/T/meteor-test-runv6ujqq.s1lnr/.meteor/local/build/programs/server/boot.js:470:11
=> Exited with code: 1
@JairAviles you need to run it with --driver-package=cultofcoders:mocha
@theodorDiaconu works fine. Thank you !!!
@theodorDiaconu thanks for taking the time fix this package for 1.6.1, I too thing is a great test package to maintain going forward. Do you've any plans to publish the cultofcoders:mocha fork?
Thanks
Hey guys, it was public: https://github.com/cult-of-coders/meteor-mocha
@theodorDiaconu Thank you. It works for 1.7.0.3 too 👍
This is like the best testing package I've seen in a long time. Please communicate if you are still maintaining it. So we at least know whether or not to mobilize and fork it and continue with it.