Skip to content

Commit b4ca718

Browse files
committed
fix: condition check
1 parent 36ce84f commit b4ca718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/workers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const createWorkerObjects = (testGroups, config, testRoot, options, selectedRuns
9999
let currentMochawesomeReportDir;
100100
let currentMochaJunitReporterFile;
101101

102-
if (config.mocha.reporterOptions) {
102+
if (config.mocha && config.mocha.reporterOptions) {
103103
currentMochawesomeReportDir = config.mocha.reporterOptions?.mochawesome.options.reportDir;
104104
currentMochaJunitReporterFile = config.mocha.reporterOptions['mocha-junit-reporter'].options.mochaFile;
105105
}

0 commit comments

Comments
 (0)