Learning about Clean Architecture with Typescript (Node.js), applying Design Patterns, Test-Driven Development, Domain Driven Design, SOLID, etc.
Course provided by Rodrigo Manguinho in Udemy platform.
Here is the original repository link, the content is in Portuguese.
Instead of using Jest which is used for Node.js testing, I used the newest Vitest which has support for Jest syntax and is blazingly fast
.
I also used Github Actions instead of Travis CI, I give it a try and is really awesome all the possibilities you have for making your Continuous Integration looks great.
You can run the tests or even run the Docker for running the API.
Run the tests with the following commands:
# Unit tests
yarn test:unit
# Integration tests
yarn test:integration
# Tests with coverage
yarn test:ci
# Run all tests
yarn test
Or simply run the following commands to run the containers:
# Run the mongo and api containers with docker-compose.yml configuration
yarn up