Introduce mocharc again

This commit is contained in:
Simon Lamon
2022-07-30 12:59:08 +00:00
parent a2e07de90c
commit a8f63c478c
5 changed files with 20 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
# empty
+11
View File
@@ -0,0 +1,11 @@
require:
- source-map-support/register
spec:
- out/**/*.test.js
- addons/**/out/*.test.js
watch-files:
- out/**/*.js
- addons/**/out/*.js
reporter: spec
color: true
check-leaks: true
+2 -1
View File
@@ -1,5 +1,6 @@
{
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.quoteStyle": "single",
"mochaExplorer.envPath": ".mocha.env"
"mochaExplorer.envPath": ".mocha.env",
"mochaExplorer.configFile": ".mocharc-unit.yml"
}
+3 -1
View File
@@ -17,7 +17,9 @@ let testFiles = [
'./addons/**/out/*test.js',
];
let flagArgs = [];
let flagArgs = [
'--config', ".mocharc-default.yml"
];
if (process.argv.length > 2) {
const args = process.argv.slice(2);
+3 -1
View File
@@ -17,7 +17,9 @@ let testFiles = [
];
let flagArgs = [];
let flagArgs = [
'--config', ".mocharc-default.yml"
];
if (process.argv.length > 2) {
const args = process.argv.slice(2);