Skip to content

Commit

Permalink
fix: report options reading for mocha (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
devpow112 authored Dec 21, 2023
1 parent 2e789c9 commit 465f528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporters/mocha.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TestReportingMochaReporter extends Spec {
super(runner, options);

const { stats } = runner;
const { reporterOptions: { reportPath } } = options;
const { reporterOptions: { reportPath } = {} } = options;

this._reportPath = reportPath ?? './d2l-test-report.json';
this._report = {
Expand Down

0 comments on commit 465f528

Please sign in to comment.