{"library":"mocha-mongoose","type":"library","category":null,"description":"Test helpers for clearing MongoDB collections between Mocha test runs using Mongoose. Version 1.2.0, stable but unmaintained since 2016. Automatically drops all collections before each spec to ensure test isolation. Supports optional `skip` array to preserve specific collections and `noClear` option for manual clearing. Requires peer dependencies mocha >=1.0.0 and mongodb >=1.0.0. An alternative to mongodb-memory-server or jest-mongodb for integration testing with your local database.","language":"javascript","status":"deprecated","version":"1.2.0","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mocha-mongoose","imports":["var clearDB = require('mocha-mongoose')(uri);","var clearDB = require('mocha-mongoose')(uri, { skip: ['users'] });","var clearDB = require('mocha-mongoose')(uri, { noClear: true });"]},{"cmd":"yarn add mocha-mongoose","imports":[]},{"cmd":"pnpm add mocha-mongoose","imports":[]}],"homepage":"https://github.com/elliotf/mocha-mongoose#readme","github":"https://github.com/elliotf/mocha-mongoose","docs":null,"changelog":null,"pypi":null,"npm":"mocha-mongoose","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}