Skip to content

Commit

Permalink
fix: correctly handle enabled config option
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Jan 30, 2024
1 parent 2b8cbe4 commit ad564dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hermione.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ import {ImagesInfoSaver} from './lib/images-info-saver';
import {getStatus} from './lib/test-adapter/hermione';

export = (hermione: Hermione, opts: Partial<ReporterOptions>): void => {
if (hermione.isWorker() || !opts.enabled) {
if (hermione.isWorker()) {
return;
}

const config = parseConfig(opts);

if (!config.enabled) {
return;
}

const htmlReporter = HtmlReporter.create(config, {toolName: ToolName.Hermione});

(hermione as Hermione & HtmlReporterApi).htmlReporter = htmlReporter;
Expand Down

0 comments on commit ad564dd

Please sign in to comment.