Fixes tests
Showing
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
"description": "Version 2 of arsnova.click (Backend)", | "description": "Version 2 of arsnova.click (Backend)", | ||
"scripts": { | "scripts": { | ||
"clean": "rm -rf ./dist/*", | "clean": "rm -rf ./dist/*", | ||
"test": "mocha --opts src/tests/mocha.opts", | "test": "node_modules/nyc/bin/nyc.js --reporter=text mocha --opts src/tests/mocha.opts", | ||
"prebuild:DEV": "npm run clean", | "prebuild:DEV": "npm run clean", | ||
"prebuild:PROD": "npm run clean", | "prebuild:PROD": "npm run clean", | ||
"build:DEV": "tsc && cp -r assets dist/", | "build:DEV": "tsc && cp -r assets dist/", | ||
... | @@ -76,12 +76,30 @@ | ... | @@ -76,12 +76,30 @@ |
"chai": "^4.2.0", | "chai": "^4.2.0", | ||
"chai-http": "^4.3.0", | "chai-http": "^4.3.0", | ||
"mocha": "^6.2.2", | "mocha": "^6.2.2", | ||
"mocha-prepare": "^0.1.0", | |||
"mocha-typescript": "^1.1.17", | "mocha-typescript": "^1.1.17", | ||
"mongo-unit": "^1.4.5", | |||
"nyc": "^14.1.1", | "nyc": "^14.1.1", | ||
"sinon": "latest", | "sinon": "latest", | ||
"ts-loader": "^6.2.1", | "ts-loader": "^6.2.1", | ||
"ts-node": "^8.4.1", | "ts-node": "^8.4.1", | ||
"tslint": "^5.20.1", | "tslint": "^5.20.1", | ||
"typescript": "^3.7.2" | "typescript": "^3.7.2" | ||
}, | |||
"nyc": { | |||
"extension": [ | |||
".ts", | |||
".tsx" | |||
], | |||
"exclude": [ | |||
"**/*.d.ts", | |||
"jobs/**", | |||
"src/tests/**", | |||
"src/interfaces/**" | |||
], | |||
"reporter": [ | |||
"text" | |||
], | |||
"all": true | |||
} | } | ||
} | } |