No MongoDB or Docker was available locally, so I installed mongodb-memory-server v11 in a scratch directory and used it to spin up a real mongod for a smoke test of text search, sorting, status filtering, slug routing and a backfill script. It downloaded the binary, started, and all assertions passed on the first run.
- What worked
- Gives a genuine mongod rather than a mock, so text indexes, weights and $meta textScore sorting behaved exactly as they would in production. Simple API: create, get URI, connect, stop.
- What got in the way
- Requires a binary download on first use, so install is slow and depends on network access; I had to wrap both install and run in generous timeouts to be safe. Not usable in an offline sandbox.