summary refs log tree commit diff
path: root/cdn/package.json
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-18 13:57:23 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-18 13:57:23 +0200
commitd53271b68e3426d6a050e05a84276d6519b1f372 (patch)
tree7b5ae202c16a18fc967cd0fd3ee135bd6325c46c /cdn/package.json
parent:bug: fix #267 (diff)
downloadserver-d53271b68e3426d6a050e05a84276d6519b1f372.tar.xz
added unittest setup + ping route test
Diffstat (limited to 'cdn/package.json')
-rw-r--r--cdn/package.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/cdn/package.json b/cdn/package.json
index 083fbf5b..7e69b65d 100644
--- a/cdn/package.json
+++ b/cdn/package.json
@@ -5,7 +5,7 @@
 	"main": "dist/index.js",
 	"types": "dist/index.d.ts",
 	"scripts": {
-		"test": "echo \"Error: no test specified\" && exit 1",
+		"test": "npm run build && jest --coverage ./tests",
 		"build": "npx tsc -b .",
 		"start": "npm run build && node dist/start.js"
 	},
@@ -48,12 +48,19 @@
 		"file-type": "^16.5.0",
 		"fs-extra": "^10.0.0",
 		"image-size": "^1.0.0",
+		"jest": "^27.0.6",
 		"lambert-db": "^1.2.3",
 		"lambert-server": "^1.2.8",
 		"missing-native-js-functions": "^1.2.10",
 		"multer": "^1.4.2",
 		"node-fetch": "^2.6.1",
+		"supertest": "^6.1.6",
 		"typescript": "^4.1.2",
 		"uuid": "^8.3.2"
+	},
+	"jest": {
+		"setupFilesAfterEnv": [
+			"<rootDir>/jest/setup.js"
+		]
 	}
 }