From 76a5da397007ca87bb13fcd3853af828f60e8725 Mon Sep 17 00:00:00 2001 From: Chang Cao Date: Thu, 15 Sep 2022 19:56:05 +0800 Subject: [PATCH] fix: 'ts-jest' should be optional in ConfigGlobals --- src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 14ae3948b9..9c85b0d139 100644 --- a/src/types.ts +++ b/src/types.ts @@ -193,10 +193,11 @@ export interface InitialOptionsTsJest extends Config.InitialOptions { globals?: GlobalConfigTsJest } type TsJestTransformerOptions = TsJestGlobalOptions -export interface JestConfigWithTsJest extends Partial> { +export interface JestConfigWithTsJest extends Partial> { transform: { [regex: string]: 'ts-jest' | ['ts-jest', TsJestTransformerOptions] | string | [string, Record] } + globals?: { [K: string]: unknown } } export type StringMap = Map