Monday 10 April 2017

cannot find module 'meteor'

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 :

  1. How can i test a meteor app without the command "meteor test" ?

  2. How i must bootstrap mocha to run meteor tests ?

Thanks.



via Zied C.

No comments:

Post a Comment