Skip to content

Commit

Permalink
fix: correctly handle enabled config option (#530)
Browse files Browse the repository at this point in the history
* fix: correctly handle enabled config option

* chore: update hermione to latest
  • Loading branch information
shadowusr authored Jan 31, 2024
1 parent 2b8cbe4 commit a8b9788
Show file tree
Hide file tree
Showing 3 changed files with 4,217 additions and 3,913 deletions.
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
Loading

0 comments on commit a8b9788

Please sign in to comment.