feat(html): unhide html reporter (#9512)

This commit is contained in:
Pavel Feldman 2021-10-14 10:17:35 -08:00 committed by GitHub
parent cd92451b9f
commit 584014f6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import ListReporter from './reporters/list';
import JSONReporter from './reporters/json';
import JUnitReporter from './reporters/junit';
import EmptyReporter from './reporters/empty';
import HtmlReporter from './reporters/html';
import { ProjectImpl } from './project';
import { Minimatch } from 'minimatch';
import { FullConfig } from './types';
@ -73,6 +74,7 @@ export class Runner {
json: JSONReporter,
junit: JUnitReporter,
null: EmptyReporter,
html: HtmlReporter,
};
const reporters: Reporter[] = [];
for (const r of this._loader.fullConfig().reporter) {
@ -541,5 +543,5 @@ class ListModeReporter implements Reporter {
}
}
export const builtInReporters = ['list', 'line', 'dot', 'json', 'junit', 'null', 'github'] as const;
export const builtInReporters = ['list', 'line', 'dot', 'json', 'junit', 'null', 'github', 'html'] as const;
export type BuiltInReporter = typeof builtInReporters[number];