jest-mongodb
jest-mongodb copied to clipboard
Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
System Info:
- Operation System: Windows 10 x64
- Node version: 14.15.1
- NPM version: 6.14.8
- Libs versions:
- @shelf/jest-mongodb: 1.2.3
- @types/mongod: 3.6.5
- jest: 26.6.3
- ts-jest: 26.5.0
- typescript: 4.1.3
Problem:
When starting jest using the command "jest" the warn is displayed:

Steps to reproduce
- create new project
- add libs and deps
- create some test
- run command
jest
@leandroluk to fix it has an open pull request that I think will fix this updating mongodb-memory-server package.
If you can't wait the merge like me, follow the steps in this thread https://stackoverflow.com/a/66102270 and it resolves the problem for while.