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

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@shelf/eslint-config](https://redirect.github.com/shelfio/eslint-config) | [`2.27.1` -> `2.30.0`](https://renovatebot.com/diffs/npm/@shelf%2feslint-config/2.27.1/2.30.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@shelf%2feslint-config/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@shelf%2feslint-config/2.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

dependencies
backend

I have growing codebase, where most early test suites were testing functions interacting with MongoDB, so all those tests needed MongoDB mocking to memory database. All went well up until...

For the same usecase as specified in my other PR: https://github.com/shelfio/jest-mongodb/pull/389 In our monorepo there's currently a problem where executing tests from the root directory via Nx means that the...

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.1.0 to 5.8.0. Release notes Sourced from mongodb's releases. v5.8.0 5.8.0 (2023-08-21) The MongoDB Node.js team is pleased to announce version 5.8.0 of the mongodb package! Release...

dependencies

I've been working with ESM for a while. Changes to Jest and my own understanding have caused me to try and thin my projects, to go to a more minimal...

Should we add the `jest-environment-node` dev dependency along with `jest-mongodb`? It is written nowhere in the doc, but yarn complains about that: ``` warning " > @shelf/[email protected]" has unmet peer...

We import TestEnvironment from jest-environment-node, but it is exported only starting jest-environment-node version 28. Fixes #406.

Jest v29 and this package v3 & v4 fail with all tests: ``` TypeError: Class extends value undefined is not a constructor or null at Object. (node_modules/@shelf/jest-mongodb/lib/environment.js:15:70) at Object.newLoader (node_modules/pirates/lib/index.js:141:7)...

## Context In my MongoDB cluster, I have a database `userDB` with the collection `users`. This `userDB.users` collection has a property `status` which can either have the value `active` or...

The command ```javascript connection = await MongoClient.connect(global.__MONGO_URI__, { useNewUrlParser: true, useUnifiedTopology: true, }); ``` has been deprecated. The `useNewUrlParser`and `useUnifiedTopology` were removed from the `MongoClientOptions` as per the explanation given...