Skip to content

Commit

Permalink
Merge pull request #36 from Financial-Times/am/CON-3084-update-mocha
Browse files Browse the repository at this point in the history
[CON-3084] update `mocha`
  • Loading branch information
metart43 committed Dec 18, 2023
2 parents 00c904c + 9806c07 commit 92f60d8
Show file tree
Hide file tree
Showing 5 changed files with 1,256 additions and 282 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.idea
/coverage
/.nyc_output/
test-results.xml
10 changes: 10 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"reporter": "mocha-multi-reporters",
"recursive": true,
"exit": true,
"reporterEnabled": "mocha-junit-reporter, spec",
"reporterOptions": "configFile=.mocharc.json",
"mochaJunitReporterReporterOptions": {
"mochaFile": "./test-results.xml"
}
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node_modules/@financial-times/n-gage/index.mk:
-include node_modules/@financial-times/n-gage/index.mk

unit-test:
export NODE_ENV=test; mocha 'test/spec/**/*.spec.js'
export NODE_ENV=test; mocha test

# unit-test-coverage:
# nyc --reporter=$(if $(CIRCLECI),lcovonly,lcov) make unit-test
Expand Down
Loading

0 comments on commit 92f60d8

Please sign in to comment.