From 0c5d48b839eaffa1532b1e8a8c91b122d7f4b1d0 Mon Sep 17 00:00:00 2001 From: ealush Date: Sat, 16 Jul 2022 12:54:21 +0300 Subject: [PATCH] types(vest): add suiteName to SuiteResult --- packages/vest/src/core/suite/produce/produceSuiteResult.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/vest/src/core/suite/produce/produceSuiteResult.ts b/packages/vest/src/core/suite/produce/produceSuiteResult.ts index 331d4b15a..d67853392 100644 --- a/packages/vest/src/core/suite/produce/produceSuiteResult.ts +++ b/packages/vest/src/core/suite/produce/produceSuiteResult.ts @@ -1,5 +1,6 @@ import { cache as createCache, assign } from 'vest-utils'; +import { SuiteSummary } from 'SuiteSummaryTypes'; import ctx from 'ctx'; import genTestsSummary from 'genTestsSummary'; import { useStateRef, useTestsFlat, useSuiteName } from 'stateHooks'; @@ -24,4 +25,5 @@ export function produceSuiteResult(): SuiteResult { ); } -export type SuiteResult = ReturnType & SuiteSelectors; +export type SuiteResult = SuiteSummary & + SuiteSelectors & { suiteName: string | undefined };