diff --git a/src/types.ts b/src/types.ts index 69cc1b67de..36103f65fd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -196,14 +196,6 @@ export interface JestConfigWithTsJest extends Omit - export type StringMap = Map export interface DepGraphInfo { fileContent: string @@ -245,7 +237,15 @@ export interface TsJestAstTransformer { afterDeclarations: AstTransformerDesc[] } -export type DefaultTransformOptions = Omit +/** + * @deprecated use other preset types below instead + */ +export type TsJestPresets = Pick< + JestConfigWithTsJest, + 'extensionsToTreatAsEsm' | 'moduleFileExtensions' | 'transform' | 'testMatch' +> + +export type DefaultTransformOptions = Omit export type DefaultPreset = { transform: { [TS_TRANSFORM_PATTERN]: ['ts-jest', DefaultTransformOptions] @@ -271,7 +271,7 @@ export type DefaultEsmLegacyPreset = { } } -export type JsWithTsTransformOptions = Omit +export type JsWithTsTransformOptions = Omit export type JsWithTsPreset = { transform: { [TS_JS_TRANSFORM_PATTERN]: ['ts-jest', JsWithTsTransformOptions]