{"library":"mongo-mock","type":"library","category":null,"description":"Mongo-Mock (v4.2.0, last released 2022) is an in-memory mock implementation of the MongoDB server, designed to mimic the official MongoDB Node.js driver API. It allows developers to test MongoDB interactions without a real database, supporting basic CRUD operations, async simulation with configurable delay, optional disk persistence, and some query operators. Compared to alternatives like mongodb-memory-server, it is lighter-weight but has limited feature coverage and is no longer actively maintained.","language":"javascript","status":"maintenance","version":"4.2.0","tags":["javascript","mongo","mock"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongo-mock","imports":["import { MongoClient } from 'mongo-mock'","import mongodb from 'mongo-mock'","const mongodb = require('mongo-mock')"]},{"cmd":"yarn add mongo-mock","imports":[]},{"cmd":"pnpm add mongo-mock","imports":[]}],"homepage":"https://github.com/williamkapke/mongo-mock","github":"https://github.com/williamkapke/mongo-mock","docs":null,"changelog":null,"pypi":null,"npm":"mongo-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}