jest-mongodb icon indicating copy to clipboard operation
jest-mongodb copied to clipboard

Jest preset for MongoDB in-memory server

Results 82 jest-mongodb issues
Sort by recently updated
recently updated
newest added

Using v2.2.2 on TS v4.6.2 with node v16 I have folder structure like the following: - ROOT - jest.config.ts - root.test.ts - CHILD-ONE - jest.config.ts - jest-mongodb-config.js - childOne.test.ts -...

Version: 3.0.1 Noticing a specific error since upgrading my Ubuntu workstation to 22.04. Noticed the issue reported on the Jest Github but it seems to be specific to this package....

I'm getting the following validation warnings when I try to use `jest-mongodb`: ``` ● Validation Warning: Unknown option "mongodbMemoryServerOptions" with value {"autoStart": false, "binary": {"skipMD5": true, "version": "4.0.3"}, "instance": {}}...

The following code in the project[ npm page](https://www.npmjs.com/package/@shelf/jest-mongodb) has deprecated connect() options ` beforeAll(async () => { connection = await MongoClient.connect(global.__MONGO_URI__, { useNewUrlParser: true, useUnifiedTopology: true, });` Both connection options...

Hi, I have multiple test files that use Mongo. I would like to connect only once (in the `globalSetup.ts`), and disconnect only once, after every test is done, on `globalTeardown.ts`....

``` @shelf/jest-mongodb tried to access jest-environment-node, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. Required package: jest-environment-node ```

Thank you for great support for testing with MongoDB and DynamoDB with Jest. In one repo I have multiple services connecting to either MongoDB and DynamoDB, is it possible to...

I'm getting the following validation error: ``` ● Validation Error: Preset @shelf/jest-mongodb not found. Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html ``` This is what my jest.config.js looks like: ``` const path = require('path')...

I currently have the following dependencies in packages.json file ``` "dependencies": { "@types/bcrypt": "^3.0.0", "bcrypt": "^5.0.0", "dotenv": "^8.2.0", "mongodb": "^3.5.9", "next": "9.4.4", "react": "16.13.1", "react-dom": "16.13.1" }, "devDependencies": { "@babel/preset-typescript":...

If I subscribe to a change stream, using mongoose's `watch` method, I encounter the following exception. Is there a way to configure the mongo memory server to support this? ```...