summary refs log tree commit diff
path: root/api/package.json
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-30 16:12:05 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-30 16:12:05 +0200
commit503c0d7b6085a90d2e2722f6856dc740806ef9fc (patch)
tree70ff9b564f27f7e516012e2455372edbbda79bcc /api/package.json
parentremoved jest config (diff)
downloadserver-503c0d7b6085a90d2e2722f6856dc740806ef9fc.tar.xz
added jest config, installed supertest
Diffstat (limited to '')
-rw-r--r--api/package.json10
1 files changed, 9 insertions, 1 deletions
diff --git a/api/package.json b/api/package.json
index eef2d069..ff9efa52 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",
+		"test": "npm run build && jest --coverage --verbose ./tests",
 		"test:watch": "jest --watch",
 		"start": "npm run build && node dist/start",
 		"build": "npx tsc -b .",
@@ -81,6 +81,14 @@
 		"mongoose-long": "^0.3.2",
 		"multer": "^1.4.2",
 		"node-fetch": "^2.6.1",
+		"supertest": "^6.1.6",
 		"typeorm": "^0.2.37"
+	},
+	"jest": {
+		"setupFilesAfterEnv": [
+			"<rootDir>/jest/setup.js",
+			"<rootDir>/scripts/setup_test.js"
+		],
+		"verbose": true
 	}
 }