Update mocha to use config file

This commit is contained in:
Will Hunt 2020-06-18 11:23:15 +01:00
parent 5a1edeee05
commit 174c3868c1
3 changed files with 11 additions and 10 deletions

6
.mocharc.yml Normal file
View file

@ -0,0 +1,6 @@
reporter: list
ui: bdd
require:
- "ts-node/register"
- "source-map-support/register"
recursive: true

View file

@ -4,7 +4,7 @@
"description": "A bridge between Matrix and Discord",
"main": "discordas.js",
"scripts": {
"test": "npm run-script build && mocha --opts test/mocha.opts build/test/config.js build/test",
"test": "npm run-script build && mocha build/test/config.js build/test",
"lint": "tslint --project ./tsconfig.json -t stylish",
"coverage": "tsc && nyc mocha build/test/config.js build/test",
"build": "tsc",
@ -55,11 +55,11 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/chai": "^3.4.35",
"@types/chai": "^4.2.11",
"@types/command-line-args": "^5.0.0",
"@types/js-yaml": "^3.12.1",
"@types/mime": "^2.0.1",
"@types/mocha": "^5.2.7",
"@types/js-yaml": "^3.12.4",
"@types/mime": "^2.0.2",
"@types/mocha": "^7.0.2",
"@types/node": "^12",
"@types/sqlite3": "^3.1.6",
"chai": "^4.2.0",

View file

@ -1,5 +0,0 @@
--reporter list
--ui bdd
--require ts-node/register
--require source-map-support/register
--recursive