From 51bb250e7c98973cdf49a14e43c345d3a5327f0c Mon Sep 17 00:00:00 2001 From: Waldek Mastykarz Date: Sun, 3 Apr 2022 12:14:55 +0200 Subject: [PATCH] Moves mocha settings to .mocharc.json. Closes #3180 --- .mocharc.json | 1 + .vscode/launch.json | 6 +----- package.json | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.mocharc.json b/.mocharc.json index 715d752e632..e3982f9a492 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -5,5 +5,6 @@ "spec": "dist/**/*.spec.js", "require": "source-map-support/register", "watch": "dist/**/*.js", + "timeout": 10000, "logpanel": true } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 259dbab81f9..aea233a3ed7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -23,11 +23,7 @@ "request": "launch", "name": "Debug Tests", "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "dist/**/*.spec.js", - "--timeout", - "10000" - ], + "args": [], "skipFiles": [ "/**" ] diff --git a/package.json b/package.json index ed008df923e..8569ed5396d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "test": "npm run test:version && npm run lint && npm run test:cov", "test:version": "node scripts/check-version.js", "test:cov": "c8 npm run test:test", - "test:test": "mocha \"dist/**/*.spec.js\" --timeout 10000", + "test:test": "mocha", "lint": "eslint --ext .ts src" }, "keywords": [