mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 22:47:17 +00:00
829 B
829 B
Testing
Unit tests
We are using Jest. Simply run yarn test to run all the tests.
Integration 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 pruneto clean the Docker caches. - Install all deps:
yarn install - Generate types:
yarn graphql:generate - Build and pack all services:
yarn workspace integration-tests run build-and-pack - Pull the images:
docker-compose -f integration-tests/docker-compose.yml pull - Run the tests:
yarn workspace integration-tests run dockest