mocha-mongoose
JSON →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.
Resources
packagemocha-mongoose ↗