summary refs log tree commit diff
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-09-01 22:13:27 +0200
committerxnacly <matteogropp@protonmail.com>2021-09-01 22:13:27 +0200
commit5618e748b48acdaea07415e11252b77b35e9a999 (patch)
treee2d73cd750ee5e0d5904ae43a2f85efb20fb5af8
parentfixed globalSetup for jest (diff)
downloadserver-5618e748b48acdaea07415e11252b77b35e9a999.tar.xz
see parent
-rw-r--r--api/package.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/package.json b/api/package.json
index 37db6ff3..66d94764 100644
--- a/api/package.json
+++ b/api/package.json
@@ -5,7 +5,7 @@
 	"main": "dist/Server.js",
 	"types": "dist/Server.d.ts",
 	"scripts": {
-		"test": "npm run build && jest --coverage --verbose ./tests",
+		"test": "npm run build && jest --coverage --verbose --forceExit ./tests",
 		"test:watch": "jest --watch",
 		"start": "npm run build && node dist/start",
 		"build": "npx tsc -b .",
@@ -86,9 +86,9 @@
 	},
 	"jest": {
 		"setupFiles": [
-			"<rootDir>/jest/setup.js",
-			"<rootDir>/scripts/setup_test.js"
+			"<rootDir>/jest/setup.js"
 		],
+		"globalSetup": "<rootDir>/scripts/globalSetup.js",
 		"verbose": true
 	}
 }