Skip to content

Commit

Permalink
Introduce mocharc again
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Jul 30, 2022
1 parent a2e07de commit a8f63c4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .mocharc-default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty
11 changes: 11 additions & 0 deletions .mocharc-unit.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 3 additions & 1 deletion bin/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion bin/test_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8f63c4

Please sign in to comment.