Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f4f5d32

Browse files
authoredFeb 8, 2021
feat(config): support typed config options for jest config typescript (#2336)
1 parent b8d5d20 commit f4f5d32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/types.ts

+8
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ export interface TsJestGlobalOptions {
154154
stringifyContentPathRegex?: string | RegExp
155155
}
156156

157+
export interface GlobalConfigTsJest extends Config.ConfigGlobals {
158+
'ts-jest': TsJestGlobalOptions
159+
}
160+
161+
export interface InitialOptionsTsJest extends Config.InitialOptions {
162+
globals?: GlobalConfigTsJest
163+
}
164+
157165
interface TsJestConfig$tsConfig$file {
158166
kind: 'file'
159167
value: string | undefined

0 commit comments

Comments
 (0)
Please sign in to comment.