Testing with Jest, how to use meteor packages?

I’m exploring using Jest as one of my main testing frameworks, and so far it works great on the client for React, and regular JS algorithm testing.

But for meteor-related tests, the regular consensus so far on these forums was to completely mock all meteor packages, and sometimes replace them with spies, with a few samples in this repo:

What I’m wondering, is if it’s possible to run meteor tests that use packages such as dburles:factory, or hwillson:stub-collections. How would one import them and get them to work?

2 Likes

I know I’m a way late but did you find any answers?

EDIT: for future readers