summary refs log tree commit diff
path: root/api
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
commit3905c51b351b0b0ad807d1c1216a493a77fb4737 (patch)
treeb27165cb1359c8a5a2dc70f1b6cc98f0b8e4b8c1 /api
parentfixed globalSetup for jest (diff)
downloadserver-3905c51b351b0b0ad807d1c1216a493a77fb4737.tar.xz
see parent
Diffstat (limited to 'api')
-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
 	}
 }