{"id":19416709,"url":"https://github.com/thibseisel/jest-mongodb","last_synced_at":"2025-08-12T05:09:00.704Z","repository":{"id":222549859,"uuid":"752220499","full_name":"thibseisel/jest-mongodb","owner":"thibseisel","description":"Jest preset that starts an in-memory MongoDB instance.","archived":false,"fork":false,"pushed_at":"2024-02-03T19:49:38.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-14T22:09:57.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thibseisel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-03T11:45:39.000Z","updated_at":"2024-02-03T11:45:59.000Z","dependencies_parsed_at":"2024-02-14T21:54:41.361Z","dependency_job_id":null,"html_url":"https://github.com/thibseisel/jest-mongodb","commit_stats":null,"previous_names":["thibseisel/jest-mongodb"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibseisel%2Fjest-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibseisel%2Fjest-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibseisel%2Fjest-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibseisel%2Fjest-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibseisel","download_url":"https://codeload.github.com/thibseisel/jest-mongodb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240595053,"owners_count":19826307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T13:04:05.440Z","updated_at":"2025-02-25T03:25:47.963Z","avatar_url":"https://github.com/thibseisel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jest preset for MongoDB\n\nA Jest preset making it easier to run Jest tests that rely on a real instance of MongoDB.\n\nYou can safely run multiple test spec in parallel: each Jest worker will connect to a different database. You may still want to clear data after running each test spec.\n\n# How to use this preset\n\nYou can specify this preset in your Jest `jest.config.js` configuration file:\n\n```js\nmodule.exports = {\n  preset: \"@tseisel/jest-mongodb\",\n}\n```\n\nIf you are already using a preset, you can apply this one with the following code:\n\n```js\nconst preset = require(\"@tseisel/jest-mongodb/jest-preset\")\n\nmodule.exports = {\n  ...preset,\n  preset: \"some-preset\",\n}\n```\n\nIf you do so, make sure that you don't override any of the following properties:\n\n- `globalSetup`\n- `globalTeardown`\n- `testEnvironment`\n\n# Configuration\n\nYou can specify which version of the MongoDB binary you'd like to use by configuring it in your `package.json`.\n\n```json\n{\n  \"@tseisel/jest-mongodb\": {\n    \"version\": \"4.4.1\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibseisel%2Fjest-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibseisel%2Fjest-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibseisel%2Fjest-mongodb/lists"}