types(test-runner): Add github to built in reporters (#9283)

This commit is contained in:
Sidharth Vinod 2021-10-04 15:01:26 +05:30 committed by GitHub
parent 19715300b3
commit ec5e7495df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

3
types/test.d.ts vendored
View File

@ -24,6 +24,7 @@ export type ReporterDescription =
['dot'] |
['line'] |
['list'] |
['github'] |
['junit'] | ['junit', { outputFile?: string, stripANSIControlSequences?: boolean }] |
['json'] | ['json', { outputFile?: string }] |
['null'] |
@ -461,7 +462,7 @@ interface TestConfig {
* ```
*
*/
reporter?: LiteralUnion<'list'|'dot'|'line'|'json'|'junit'|'null', string> | ReporterDescription[];
reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null', string> | ReporterDescription[];
/**
* Whether to report slow tests. Pass `null` to disable this feature.
*

View File

@ -23,6 +23,7 @@ export type ReporterDescription =
['dot'] |
['line'] |
['list'] |
['github'] |
['junit'] | ['junit', { outputFile?: string, stripANSIControlSequences?: boolean }] |
['json'] | ['json', { outputFile?: string }] |
['null'] |
@ -108,7 +109,7 @@ interface TestConfig {
preserveOutput?: PreserveOutput;
projects?: Project[];
quiet?: boolean;
reporter?: LiteralUnion<'list'|'dot'|'line'|'json'|'junit'|'null', string> | ReporterDescription[];
reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null', string> | ReporterDescription[];
reportSlowTests?: ReportSlowTests;
shard?: Shard;
updateSnapshots?: UpdateSnapshots;