I want to test a meteor app with mocha framework from the command line:
mocha **/*/*spec.js --compilers js:babel-core/register
all tests works fine but when tests file begin with :
import { Meteor } from 'meteor/meteor';
import { Factory } from 'meteor/dburles:factory';
import meteor etc .. I receive error :
Error: Cannot find module 'meteor/meteor'
so my questions are :
-
How can i test a meteor app without the command "meteor test" ?
-
How i must bootstrap mocha to run meteor tests ?
Thanks.
via Zied C.
No comments:
Post a Comment