From 70a9e74f680620953f07ba380908b5d03f3a4006 Mon Sep 17 00:00:00 2001 From: Samuel Ytterbrink Date: Thu, 28 Jan 2021 12:21:03 +0100 Subject: [PATCH] Update typescript dependencies and the mocharc file --- TypeScript/.mocharc.js | 10 ++++++++++ TypeScript/package.json | 15 +++++++-------- TypeScript/test/mocha.opts | 4 ---- 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 TypeScript/.mocharc.js delete mode 100644 TypeScript/test/mocha.opts diff --git a/TypeScript/.mocharc.js b/TypeScript/.mocharc.js new file mode 100644 index 00000000..662e3c27 --- /dev/null +++ b/TypeScript/.mocharc.js @@ -0,0 +1,10 @@ +"use strict"; + +module.exports = { + require: [ + "ts-node/register", + "source-map-support/register" + ], + recursive: true, + spec: "test/*.spec.ts" +} \ No newline at end of file diff --git a/TypeScript/package.json b/TypeScript/package.json index 4494c786..6bca69d9 100644 --- a/TypeScript/package.json +++ b/TypeScript/package.json @@ -14,13 +14,13 @@ "@types/chai": "~3.5.2", "@types/mocha": "~2.2.41", "@types/node": "~7.0.18", - "chai": "~3.5.0", - "mocha": "~3.2.0", - "nyc": "~11.0.3", - "rimraf": "~2.5.2", - "source-map-support": "0.5.9", - "ts-node": "~3.1.0", - "typescript": "~3.0.3" + "chai": "~4.2.0", + "mocha": "~8.2.1", + "nyc": "~15.1.0", + "rimraf": "~3.0.2", + "source-map-support": "0.5.19", + "ts-node": "~9.1.1", + "typescript": "~4.1.3" }, "nyc": { "extension": [ @@ -39,4 +39,3 @@ ] } } - diff --git a/TypeScript/test/mocha.opts b/TypeScript/test/mocha.opts deleted file mode 100644 index 7f3499f7..00000000 --- a/TypeScript/test/mocha.opts +++ /dev/null @@ -1,4 +0,0 @@ ---compilers ts-node/register ---require source-map-support/register ---recursive -test/**/*.spec.ts