API NodeJS with Clean Architecture and TDD by youtube channel Mango
Link playlist tutorial: https://youtube.com/playlist?list=PL9aKtVrF05DyEwK5kdvzrYXFdpZfj1dsG
API using Clean Architecture and TDD
-
npm run pre-commit
- Run the lint-staged.
- This script are created to husky run this before make a commit.
- Lint-staged ensure the code is on pattern of StandardJS.
-
npm test
- Execute tests in application with a few rules
-
npm run test:integration
- Run the script "npm test" with some additional rules
- Use with default the jest-integration-config, configurations to integration tests
-
npm run test:unit
- Run the script "npm test" with some additional rules
- Use with default the jest-unit-config, configurations to units tests
-
npm run test:staged
- Execute tests with different rules in relation to "npm test".
- This script are created to husky run this before make a commit.
-
npm run test:ci
- Execute tests with report.
- This report show to us if the test coverage all files in the application or not.
- This script are used in CI (Continuous Integration)