Added frontend tests

This commit is contained in:
Sebastian Seedorf
2020-11-17 00:06:10 +01:00
parent 37c34f99ac
commit b79c2f96cd
16 changed files with 2712 additions and 84 deletions

View File

@@ -8,11 +8,14 @@
"debug-client": "tsc-watch --project ./public/js-source",
"debug-server": "tsc-watch --project . --onSuccess \"node --enable-source-maps --use-openssl-ca --unhandled-rejections=strict ./out/index\"",
"debug": "concurrently npm:debug-*",
"test": "nyc mocha -r ts-node/register ./public/js-source/test/**/*.ts",
"build": "tsc",
"production": "node --use-openssl-ca --unhandled-rejections=strict ./out/index",
"install-debug": "npm install && npm run build",
"install-prod": "npm install --only=dev && npm install --only=prod && npm run build && rm -r node_modules && npm install --only=prod",
"install-prod-win": "npm install --only=dev && npm install --only=prod && npm run build && rmdir /Q/S node_modules && npm install --only=prod"
"install-prod": "npm install --only=dev && npm install --only=prod && npm run build && npm run del-node-module && npm install --only=prod",
"del-node-module:default": "rm -r node_modules",
"del-node-module:windows": "if exist node_modules rmdir /Q/S node_modules",
"del-node-module": "run-script-os"
},
"dependencies": {
"compression": "^1.7.4",
@@ -25,18 +28,27 @@
"role-acl": "^4.5.4"
},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/compression": "^1.7.0",
"@types/express": "^4.17.8",
"@types/http-errors": "^1.8.0",
"@types/mocha": "^8.0.4",
"@types/node": "^14.14.7",
"@types/node-sass-middleware": "0.0.31",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"chai": "^4.2.0",
"concurrently": "^5.3.0",
"eslint": "^7.13.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-promise": "^4.2.1",
"fetch-mock": "^9.10.7",
"jsdom": "^16.4.0",
"mocha": "^8.2.1",
"node-watch": "^0.7.0",
"nyc": "^15.1.0",
"rewire": "^5.0.0",
"ts-node": "^9.0.0",
"tsc-watch": "^4.2.9",
"typescript": "^4.0.5"
}