Skip to content

Commit 2a8db2f

Browse files
author
Chang Cao
committed
fix: modify interface JestConfigWithTsJest
1 parent 8bb5ed7 commit 2a8db2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare module '@jest/types' {
1717
*/
1818
// eslint-disable-next-line
1919
// @ts-ignore
20-
'ts-jest'?: TsJestGlobalOptions
20+
'ts-jest': TsJestGlobalOptions
2121
}
2222
}
2323
}
@@ -193,10 +193,11 @@ export interface InitialOptionsTsJest extends Config.InitialOptions {
193193
globals?: GlobalConfigTsJest
194194
}
195195
type TsJestTransformerOptions = TsJestGlobalOptions
196-
export interface JestConfigWithTsJest extends Partial<Omit<Config.ProjectConfig, 'transform'>> {
196+
export interface JestConfigWithTsJest extends Partial<Omit<Config.InitialOptions, 'transform' | 'globals'>> {
197197
transform: {
198198
[regex: string]: 'ts-jest' | ['ts-jest', TsJestTransformerOptions] | string | [string, Record<string, unknown>]
199199
}
200+
globals?: { [K: string]: unknown }
200201
}
201202

202203
export type StringMap = Map<string, string>

0 commit comments

Comments
 (0)