Skip to content

Commit

Permalink
Update test command
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed May 20, 2023
1 parent 0d1c1c9 commit b03ff8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ docker run -e RUN_LOCAL=true -e TYPESCRIPT_DEFAULT_STYLE=prettier -e VALIDATE_DO

Note: We have disabled HADOLINT for now as we are getting an error: `qemu: uncaught target signal 11 (Segmentation fault) - core dumped`.


### Tests

The CI Pipeline uses the `test` target from the Dockerfile to run the tests. You can run it locally with the following command:

```bash
docker compose -f docker-compose.test.yml up
docker compose -f docker-compose.test.yml up --exit-code-from app
```

Note: This will create a /coverage folder where you can review the coverage details.
Note: This will create a /coverage folder where you can review the coverage details.
8 changes: 4 additions & 4 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
app:
Expand All @@ -20,13 +20,13 @@ services:
- redis
- mongo
redis:
image: 'redis:alpine'
image: "redis:alpine"
ports:
- 6379:6379
mongo:
image: 'mongo'
image: "mongo"
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
- MONGO_INITDB_ROOT_PASSWORD=pass
6 changes: 3 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node'
}
preset: "ts-jest",
testEnvironment: "node",
};

0 comments on commit b03ff8c

Please sign in to comment.