Closed ArthurHoaro closed 1 year ago
const mongoSetup = require('@shelf/jest-mongodb/lib/setup');
Have you tried this?
I did not, and it's working fine! Thank you! I suppose it's because the build has changed with TS support.
It could be worth mentioning it in the release note.
I use a simple jest setup script to perform a few bootstrap operations (init, load fixtures, etc.), based on #212, something like this:
Unfortunately, this no longer works with the release
v4.1.0
, but it did work withv4.0.0
. The following error is now thrown:I don't mind updating my script if it's an expected behavior, but since it does not seem to be documented, I'm not sure what's the best way to handle it.