This project is about how to setup jest testing in a nodejs backend project with mongodb database.
It's a continuation of node-mongodb-typescript-eslint-prettier.
- Jest testing. ✅
- Github actions. ✅
- Express framework. ✅
- MongoDB database connection, schema creation and validation. ✅
- Zod validation. (Request body, params and query validation) ✅
- Error handling. ✅
- TypeScript configuration. ✅
- Eslint configuration. ✅
- Prettier configuration. ✅
yarn devRuns the app in the development mode.
yarn testRuns the app in the testing mode.
yarn run buildBuilds the app for production to the build folder.
yarn run prodRuns the production app.
yarn run lintEslint will show all errors and warnings.
yarn run lint:fixEslint will fix all errors and warnings (which are fixable).