Jest e MongoDB
This repository contains an example of a simple API, that uses mongo as a database, and Jest for testing.
Packages used for testing:
- mongodb-memory-server: Downloads and spins up a real MongoDB server and holds the data in memory;
- supertest: Library for testing node.js HTTP servers;