Run domain tests: yarn test
Run eslint: yarn eslint .
Just run docker compose up -d
To check that all work fun execute request:
curl -i http://localhost:3000/deposit/initialize
HTTP 200 status and sessionId
should be received in response
yarn typeorm migration:generate -d Context/Infrastructure/TypeORM/DataSource/DataSource.ts Context/Infrastructure/TypeORM/migrations/__migrationName__
yarn typeorm migration:run -d Context/Infrastructure/TypeORM/DataSource/DataSource.ts
Unit tests doesn't use database. Just run this command to execute them:
yarn test
- Create test databases
docker compose exec db bash -c "./initdb_test.sh"
- Execute migrations
NODE_ENV=test yarn typeorm migration:run -d Context/Infrastructure/TypeORM/DataSource/DataSource.ts
- Run tests
yarn test:integration