node-mongodb-fixtures

JSON →
library 3.2.9 ·javascript
verified Jun 5, 2026

A package and CLI for setting up and tearing down MongoDB test fixtures. Version 3.2.9 supports both JSON and JavaScript fixture files, custom collection scripts for indexes, and programmatic or CLI usage. Release cadence is irregular, maintained as of 2023. Key differentiators include first-class support for JavaScript fixtures (allowing ObjectId generation) and 'collection scripts' for injecting custom logic during load. Compared to similar tools (mongodb-memory-server, fixtures libraries), this package focuses purely on fixture loading/unloading with no in-memory server.