Skip to content

Commit a8b9788

Browse files
authored
fix: correctly handle enabled config option (#530)
* fix: correctly handle enabled config option * chore: update hermione to latest
1 parent 2b8cbe4 commit a8b9788

File tree

3 files changed

+4217
-3913
lines changed

3 files changed

+4217
-3913
lines changed

hermione.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ import {ImagesInfoSaver} from './lib/images-info-saver';
2020
import {getStatus} from './lib/test-adapter/hermione';
2121

2222
export = (hermione: Hermione, opts: Partial<ReporterOptions>): void => {
23-
if (hermione.isWorker() || !opts.enabled) {
23+
if (hermione.isWorker()) {
2424
return;
2525
}
2626

2727
const config = parseConfig(opts);
2828

29+
if (!config.enabled) {
30+
return;
31+
}
32+
2933
const htmlReporter = HtmlReporter.create(config, {toolName: ToolName.Hermione});
3034

3135
(hermione as Hermione & HtmlReporterApi).htmlReporter = htmlReporter;

0 commit comments

Comments
 (0)