From ec5e7495df2631d7d81d22b6fd6dba39cdf16099 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 4 Oct 2021 15:01:26 +0530 Subject: [PATCH] types(test-runner): Add github to built in reporters (#9283) --- types/test.d.ts | 3 ++- utils/generate_types/overrides-test.d.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/test.d.ts b/types/test.d.ts index fd11bb62e5..0e3faeb9fe 100644 --- a/types/test.d.ts +++ b/types/test.d.ts @@ -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. * diff --git a/utils/generate_types/overrides-test.d.ts b/utils/generate_types/overrides-test.d.ts index e078a27fa3..57feedfe26 100644 --- a/utils/generate_types/overrides-test.d.ts +++ b/utils/generate_types/overrides-test.d.ts @@ -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;