diff --git a/.mocharc.yml b/.mocharc.yml new file mode 100644 index 0000000000000000000000000000000000000000..2596d0189b2426b64dac3133b7b24d202135d71f --- /dev/null +++ b/.mocharc.yml @@ -0,0 +1,6 @@ +reporter: list +ui: bdd +require: + - "ts-node/register" + - "source-map-support/register" +recursive: true \ No newline at end of file diff --git a/package.json b/package.json index c7c222cb17f2b75121750d93fd78fedbf86a0c44..0f6c4cbadfdca0edc0502fc021d9a51d59b7915b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index c8a40c38426f446dcef3b65d343acc7091a74dca..0000000000000000000000000000000000000000 --- a/test/mocha.opts +++ /dev/null @@ -1,5 +0,0 @@ ---reporter list ---ui bdd ---require ts-node/register ---require source-map-support/register ---recursive