REST API built in NodeJS with Express framework. Pet project for introduction to Node and its ecosystem.
- Clone repo
yarn install
yarn start
yarn test
- runs all testsyarn test-watch
- runs all tests in watch modejest src/app/models
- runs all tests under models
- Start mongo DB instance
docker run -p 27017:27017 mongo
- Run tests jest test/integration/
- Yarn - For package management and execution
- Winston - For logging
- Dotenv - For environment variables support
- Mockingoose - Mocking Mongoose Models
- Mongoose connections were left open when running integration tests which would leave Jest hanging. Add to explicitly close the mongoose connection (and force it!). jestjs/jest#3602