We are using Jest. Simply run pnpm test
to run all the tests.
We are using Dockest to test the following concerns:
- Main application flows and integration of different services
- Build and pack process of all packages
- Containerize execution of all services
- Cross-service network calls
To run integration tests locally, follow:
- Make sure you have Docker installed. If you are having issues, try to run
docker system prune
to clean the Docker caches. - Install all deps:
pnpm i
- Generate types:
pnpm graphql:generate
- Build and pack all services:
pnpm --filter integration-tests build-and-pack
- Pull the images:
docker-compose -f integration-tests/docker-compose.yml pull
- Run the tests:
pnpm --filter integration-tests dockest