Skip to content

Commit

Permalink
test: force exit jest in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Aug 20, 2024
1 parent c12ef59 commit 477f32b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test:watch": "npm run test -- --watch",
"test:cov": "npm run test -- --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "npm run test -- --runInBand --config ./test/e2e/jest-e2e.json",
"test:e2e": "npm run test -- --runInBand --config ./test/e2e/jest-e2e.json --forceExit",
"db": "docker compose up",
"db:deploy": "docker compose up -d",
"db:remove": "docker compose down -v",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/jest-e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": "../",
"testEnvironment": "node",
"testRegex": "e2e-spec.ts$",
"testRegex": ".e2e-spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
Expand Down

0 comments on commit 477f32b

Please sign in to comment.