From 477f32ba4a7de250e14c13f1983877e5c09f06f4 Mon Sep 17 00:00:00 2001 From: Timo Erdelt Date: Tue, 20 Aug 2024 09:28:25 +0200 Subject: [PATCH] test: force exit jest in e2e tests --- package.json | 2 +- test/e2e/jest-e2e.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3380f41f..fae6d093 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/e2e/jest-e2e.json b/test/e2e/jest-e2e.json index 70f03f71..cccba294 100644 --- a/test/e2e/jest-e2e.json +++ b/test/e2e/jest-e2e.json @@ -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" },