Skip to content

Commit

Permalink
Update reporterConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Jun 21, 2022
1 parent 14cc7d4 commit b5b6d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cypress-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ const configureReporters = function (cypressCfg, runCfg, opts) {
reporterEnabled: `spec, ${customReporter}, ${junitReporter}`,
[[_.camelCase(customReporter), 'ReporterOptions'].join('')]: {
mochaFile: `${runCfg.resultsDir}/[suite].xml`,
specRoot: cypressCfg.e2e?.specPattern || 'cypress/e2e'
specRoot: runCfg.rootDir || 'cypress/e2e'
},
[[_.camelCase(junitReporter), 'ReporterOptions'].join('')]: {
mochaFile: `${runCfg.resultsDir}/[suite].xml`,
specRoot: cypressCfg.e2e?.specPattern || 'cypress/e2e'
specRoot: runCfg.rootDir || 'cypress/e2e'
}
};

Expand Down

0 comments on commit b5b6d90

Please sign in to comment.