Skip to content

Commit d4b6161

Browse files
namsnathdeepjyoti30-st
authored andcommitted
fix: broken tests, update configs
1 parent 8df0cd9 commit d4b6161

13 files changed

+2021
-185
lines changed

.mocharc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ spec:
22
- test/unit/**/*.test.js
33
- test/end-to-end/**/*.test.js
44
slow: 20000
5-
timeout: 30000
5+
timeout: 40000
66
exit: true
7-
reporter: mochawesome
8-
reporter-option:
9-
- "reportDir=test_report/mochawesome"
107
require:
118
- "@babel/register"
129
- test/test.mocha.env
10+
reporter: mocha-multi-reporters
11+
reporter-option:
12+
- configFile=mocha-multi-reporters.json

mocha-multi-reporters.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"reporterEnabled": "mochawesome, mocha-junit-reporter",
3+
"mochaJunitReporterReporterOptions": {
4+
"mochaFile": "test_report/test-results.xml"
5+
},
6+
"mochawesomeReporterOptions": {
7+
"reportDir": "test_report/mochawesome"
8+
}
9+
}

package-lock.json

Lines changed: 460 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@
4545
"jsdom-global": "3.0.2",
4646
"madge": "^5.0.1",
4747
"mkdirp": "^1.0.4",
48-
"mocha": "6.1.4",
49-
"mocha-junit-reporter": "^2.0.2",
50-
"mocha-multi": "1.1.6",
48+
"mocha": "^10.2.0",
49+
"mocha-junit-reporter": "^2.2.1",
50+
"mocha-multi": "^1.1.7",
51+
"mocha-multi-reporters": "^1.5.1",
5152
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
5253
"npm-run-all": "^4.1.5",
5354
"postcss": "^8.4.19",

0 commit comments

Comments
 (0)