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
commit5e2dd889089810ac73aba97a3bb7ff350f42249c (patch)
tree0b515fb43cadef2e4042110fe67d01c1629ecccc /api/package.json
parentremoved jest config (diff)
downloadserver-5e2dd889089810ac73aba97a3bb7ff350f42249c.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
 	}
 }