Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed Oct 21, 2023
1 parent 4430b31 commit 07ef322
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"migrate": "node --loader ts-node/esm ./src/repository/storage/postgres/migrations/index.ts -c app-config.yaml -c app-config.local.yaml",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"test": "vitest",
"test:verbose": "DEBUG=testcontainers* yarn test",
"test:dev": "vitest",
"test": "vitest run",
"typecheck": "tsc --noEmit -p ."
},
"author": "",
Expand Down
10 changes: 7 additions & 3 deletions src/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ Also consider using [AAA pattern](https://medium.com/@pjbgf/title-testing-code-o
See `src/presentation/http/router/note.test.ts` for example

## Running tests
- Perform a single tests run without watch mode:
```
yarn test
```

- Execute all the tests:
- Execute all the tests and enter watch mode to track file changes and re-execute tests:

```
yarn test
yarn test:dev
```

- Execute all tests in verbose mode:
```
yarn test:verbose
DEBUG=testcontainers* yarn test
```
Use this command for troubleshooting test DB. It will output all testcontainers logs.
- Execute specific tests
Expand Down

0 comments on commit 07ef322

Please sign in to comment.