Skip to content

Commit

Permalink
fix: 'ts-jest' should be optional in ConfigGlobals
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Cao committed Sep 16, 2022
1 parent 8011d5d commit 76a5da3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.ts
Expand Up @@ -193,10 +193,11 @@ export interface InitialOptionsTsJest extends Config.InitialOptions {
globals?: GlobalConfigTsJest
}
type TsJestTransformerOptions = TsJestGlobalOptions
export interface JestConfigWithTsJest extends Partial<Omit<Config.ProjectConfig, 'transform'>> {
export interface JestConfigWithTsJest extends Partial<Omit<Config.InitialOptions, 'transform' | 'globals'>> {
transform: {
[regex: string]: 'ts-jest' | ['ts-jest', TsJestTransformerOptions] | string | [string, Record<string, unknown>]
}
globals?: { [K: string]: unknown }
}

export type StringMap = Map<string, string>
Expand Down

0 comments on commit 76a5da3

Please sign in to comment.