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 JSONReporter from './reporters/json';
import JUnitReporter from './reporters/junit'; import JUnitReporter from './reporters/junit';
import EmptyReporter from './reporters/empty'; import EmptyReporter from './reporters/empty';
import HtmlReporter from './reporters/html';
import { ProjectImpl } from './project'; import { ProjectImpl } from './project';
import { Minimatch } from 'minimatch'; import { Minimatch } from 'minimatch';
import { FullConfig } from './types'; import { FullConfig } from './types';
@ -73,6 +74,7 @@ export class Runner {
json: JSONReporter, json: JSONReporter,
junit: JUnitReporter, junit: JUnitReporter,
null: EmptyReporter, null: EmptyReporter,
html: HtmlReporter,
}; };
const reporters: Reporter[] = []; const reporters: Reporter[] = [];
for (const r of this._loader.fullConfig().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]; export type BuiltInReporter = typeof builtInReporters[number];