Skip to content

Commit

Permalink
Move mocha config into file (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
devpow112 authored Dec 14, 2023
1 parent 9ffdcb2 commit a7859d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.nyc_output/
coverage/
node_modules/
d2l-test-report.json
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"spec": "test/**/*.test.js",
"reporter": "src/internal/mocha-reporter.cjs",
"retries": 3
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"fix": "npm run fix:eslint",
"fix:eslint": "npm run lint:eslint -- --fix",
"test": "npm run lint && npm run test:unit",
"test:unit": "c8 env-cmd -f test/.env mocha \"test/**/*.test.js\" -R src/internal/mocha-reporter.cjs --retries 3"
"test:unit": "c8 env-cmd -f test/.env mocha"
},
"dependencies": {
"@actions/core": "^1",
Expand Down

0 comments on commit a7859d5

Please sign in to comment.