{"library":"vitest-mongodb","type":"library","category":null,"description":"vitest-mongodb is a utility package designed to facilitate integration testing for applications using MongoDB within a Vitest test environment. It leverages `mongodb-memory-server` to spin up an ephemeral, in-memory MongoDB instance for each test run or suite, ensuring isolated and clean test states without requiring a persistent MongoDB installation. The current stable version is 1.0.3, with updates typically driven by upstream changes in Vitest or `mongodb-memory-server`. This package does not have a stated fixed release cadence but follows standard semantic versioning practices. Its key differentiator from `jest-mongodb` is its native integration with Vitest's setup files and global variables, providing a streamlined, Vite-centric experience, although some configuration paradigms from `jest-mongodb` have different implementations or are not directly supported.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","vitest","vite","mongodb-memory-server","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vitest-mongodb","imports":["import { setup } from 'vitest-mongodb';","import { teardown } from 'vitest-mongodb';","globalThis.__MONGO_URI__"]},{"cmd":"yarn add vitest-mongodb","imports":[]},{"cmd":"pnpm add vitest-mongodb","imports":[]}],"homepage":null,"github":"https://github.com/ec965/vitest-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vitest-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vitest-mongodb/compatibility"}}