Testing with jest

Hi,
I have an app running meteor 1.7.0.3 and I can make it work with jest to unit tests functions and I am also able to mock Meteor and Mongo calls.

However I would like to test my server-side methods on a test database to be sure that they work correctly, as those contain most of my business logic, and I am not sure if it is possible with jest at the moment.

If you use mocha, you can use the “meteor test” command that uses a test database that you can reset and pre-populate for the tests.

Is there a way to achieve something similar with jest? Has anybody developed a jest driver for meteor test?

Cheers,

Hi @mastrolindo, were you able to figure this out? I’m referring to this repo: https://github.com/orangecms/jest-meteor-demo
But it doesn’t show a clear path.