/test-express-with-inmemory-mongodb

Sample project that demonstrates how to test express endpoints using super tests with an in-memory mongodb database

Primary LanguageJavaScript

Dependencies

What you need to run this project:

  • Node.js

(MongoDB is not required because it'll run in memory by the package mongodb-memory-server).

Try it out

1. Install dependencies

npm install

2. Run tests

npm test

Tools

Main tools used in this project:

Also take a look at mongodb-memory-server-global to download mongod's binary globally and mongodb-memory-server-core if you'll run the test on a server that already has mongod installed.