From 63695341691b6dc33d5d9618ab15f98e522a5cf4 Mon Sep 17 00:00:00 2001 From: Heinous Tugboat Date: Sat, 1 Oct 2022 10:39:30 -0400 Subject: [PATCH] Moves mocha config out of package.json into mocharc file --- .mocharc.jsonc | 15 +++++++++++++++ package.json | 21 --------------------- 2 files changed, 15 insertions(+), 21 deletions(-) create mode 100644 .mocharc.jsonc diff --git a/.mocharc.jsonc b/.mocharc.jsonc new file mode 100644 index 0000000..f4bc156 --- /dev/null +++ b/.mocharc.jsonc @@ -0,0 +1,15 @@ +{ + "bail": false, + "delay": false, + "diff": true, + "extension": ["ts"], + "node-option": "loader=ts-node/esm", + "parallel": true, + "reporter": "spec", + "require": ["./test/setup-tests.ts"], + "slow": "75", + "timeout": "2000", + "ui": "bdd", + "watch-files": ["test/**/*.ts"], + "watch-ignore": [] +} diff --git a/package.json b/package.json index 7a9ded1..c6d86c8 100644 --- a/package.json +++ b/package.json @@ -49,26 +49,5 @@ "mocha": "^10.0.0", "sinon": "^14.0.0", "sinon-chai": "^3.7.0" - }, - "mocha": { - "bail": false, - "delay": false, - "diff": true, - "extension": [ - "ts" - ], - "node-option": "loader=ts-node/esm", - "parallel": true, - "reporter": "spec", - "require": [ - "./test/setup-tests.ts" - ], - "slow": "75", - "timeout": "2000", - "ui": "bdd", - "watch-files": [ - "test/**/*.ts" - ], - "watch-ignore": [] } }