Upgrading ts-jest 28 to 29
Review needed28.0.8 → 29.4.15Fixed1
A major version jump with sparse notes. Read the release notes before upgrading.
- The notes are sparse for a jump this size, so read them first.
No breaking, platform, security or deprecated items in this range.
Node.js requirement changed in 29.1.3: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0 → ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0.
Adds handlebars ^4.7.10, type-fest ^4.41.0.
Drops jest-util.
Installs 14 packages in all (was 27).
Also installs minimist, neo-async, source-map, uglify-js, wordwrap.
No longer installs @jest/schemas, @jest/types, @sinclair/typebox, @types/istanbul-lib-coverage, @types/istanbul-lib-report, @types/istanbul-reports, @types/node, @types/yargs, @types/yargs-parser, ansi-styles, chalk, ci-info, color-convert, color-name, graceful-fs and 4 more.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
const afterAll: typeof import('@jest/globals').afterAll - removed:
const afterEach: typeof import('@jest/globals').afterEach - removed:
const beforeAll: typeof import('@jest/globals').beforeAll - removed:
const beforeEach: typeof import('@jest/globals').beforeEach - removed:
const describe: typeof import('@jest/globals').describe - removed:
const expect: typeof import('@jest/globals').expect - removed:
const fdescribe: typeof import('@jest/globals').fdescribe - removed:
const fit: typeof import('@jest/globals').fit - removed:
const it: typeof import('@jest/globals').it - removed:
const jest: typeof import('@jest/globals').jest - removed:
const test: typeof import('@jest/globals').test - removed:
const xdescribe: typeof import('@jest/globals').xdescribe - removed:
const xit: typeof import('@jest/globals').xit - removed:
const xtest: typeof import('@jest/globals').xtest
- changed:
property Config.ConfigGlobals.'ts-jest': TsJestGlobalOptions → property Config.ConfigGlobals.'ts-jest'?: TsJestTransformerOptions
- added:
export * from './types'
- changed:
const pathsToModuleNameMapper: (mapping: import('typescript').MapLike<string[]>, { prefix }?: { prefix: string }) => JestPathMapping → const pathsToModuleNameMapper: (mapping: TsPathMapping, { prefix, useESM }?: { prefix?: string; useESM?: boolean }) => JestPathMapping
- added:
type TsConfigCompilerOptionsJson = TsConfigJson.CompilerOptions
- added:
const ESM_JS_TRANSFORM_PATTERN = '^.+\\.m?jsx?$' - added:
const ESM_TS_JS_TRANSFORM_PATTERN = '^.+\\.m?[tj]sx?$' - added:
const ESM_TS_TRANSFORM_PATTERN = '^.+\\.m?tsx?$' - added:
const JS_TRANSFORM_PATTERN = '^.+\\.jsx?$' - added:
const TS_JS_TRANSFORM_PATTERN = '^.+\\.[tj]sx?$' - added:
const TS_TRANSFORM_PATTERN = '^.+\\.tsx?$'
- changed:
const _default: { createTransformer(): TsJestTransformer } → const _default: { createTransformer(tsJestConfig?: TsJestTransformerOptions): TsJestTransformer }
- changed:
constructor ConfigSet(jestConfig: ProjectConfigTsJest | undefined, parentLogger?: Logger | undefined) → constructor ConfigSet(jestConfig: TsJestTransformOptions['config'] | undefined, parentLogger?: Logger | undefined) - changed:
protected method ConfigSet._resolveTsConfig(compilerOptions?: RawCompilerOptions, resolvedConfigFile?: string): Record<string, any> → protected method ConfigSet._resolveTsConfig(compilerOptions?: RawCompilerOptions | TsConfigCompilerOptionsJson, resolvedConfigFile?: string): Record<string, any>
- changed:
const _default: { createTransformer: () => TsJestTransformer } → const _default: { createTransformer: (tsJestConfig?: TsJestTransformerOptions) => TsJestTransformer }
- changed:
class TsJestTransformer implements SyncTransformer → class TsJestTransformer implements SyncTransformer<TsJestTransformerOptions> - changed:
constructor TsJestTransformer() → constructor TsJestTransformer(transformerOptions?: TsJestTransformerOptions | undefined) - changed:
method TsJestTransformer.getCacheKey(fileContent: string, filePath: string, transformOptions: TransformOptionsTsJest): string → method TsJestTransformer.getCacheKey(fileContent: string, filePath: string, transformOptions: TsJestTransformOptions): string - changed:
method TsJestTransformer.getCacheKeyAsync(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): Promise<string> → method TsJestTransformer.getCacheKeyAsync(sourceText: string, sourcePath: string, transformOptions: TsJestTransformOptions): Promise<string> - changed:
method TsJestTransformer.process(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): TransformedSource → method TsJestTransformer.process(sourceText: string, sourcePath: string, transformOptions: TsJestTransformOptions): TransformedSource - changed:
method TsJestTransformer.processAsync(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): Promise<TransformedSource> → method TsJestTransformer.processAsync(sourceText: string, sourcePath: string, transformOptions: TsJestTransformOptions): Promise<TransformedSource> - changed:
protected method TsJestTransformer._createConfigSet(config: ProjectConfigTsJest | undefined): ConfigSet → protected method TsJestTransformer._createConfigSet(config: TsJestTransformOptions['config'] | undefined): ConfigSet
- added:
const allPresets: { readonly defaults: import('..').DefaultPreset; readonly defaultsLegacy: import('..').DefaultLegacyPreset; readonly defaultsESM: import('..').DefaultEsmPreset… - added:
default allPresets
- added:
function createDefaultEsmLegacyPreset(tsJestTransformOptions?: DefaultEsmTransformOptions): DefaultEsmLegacyPreset - added:
function createDefaultEsmPreset(tsJestTransformOptions?: DefaultEsmTransformOptions): DefaultEsmPreset - added:
function createDefaultLegacyPreset(tsJestTransformOptions?: DefaultTransformOptions): DefaultLegacyPreset - added:
function createDefaultPreset(tsJestTransformOptions?: DefaultTransformOptions): DefaultPreset - added:
function createJsWithBabelEsmLegacyPreset(tsJestTransformOptions?: JsWithBabelEsmTransformOptions): JsWithBabelEsmLegacyPreset - added:
function createJsWithBabelEsmPreset(tsJestTransformOptions?: JsWithBabelEsmTransformOptions): JsWithBabelEsmPreset - added:
function createJsWithBabelLegacyPreset(tsJestTransformOptions?: JsWithBabelTransformerOptions): JsWithBabelLegacyPreset - added:
function createJsWithBabelPreset(tsJestTransformOptions?: JsWithBabelTransformerOptions): JsWithBabelPreset - added:
function createJsWithTsEsmLegacyPreset(tsJestTransformOptions?: JsWithTsEsmTransformOptions): JsWithTsEsmLegacyPreset - added:
function createJsWithTsEsmPreset(tsJestTransformOptions?: JsWithTsEsmTransformOptions): JsWithTsEsmPreset - added:
function createJsWithTsLegacyPreset(tsJestTransformOptions?: JsWithTsTransformOptions): JsWithTsLegacyPreset - added:
function createJsWithTsPreset(tsJestTransformOptions?: JsWithTsTransformOptions): JsWithTsPreset
- changed:
property RawCompilerOptions.allowJs?: boolean → property RawCompilerOptions.allowJs?: boolean | null - changed:
property RawCompilerOptions.allowSyntheticDefaultImports?: boolean → property RawCompilerOptions.allowSyntheticDefaultImports?: boolean | null - changed:
property RawCompilerOptions.allowUmdGlobalAccess?: boolean → property RawCompilerOptions.allowUmdGlobalAccess?: boolean | null - changed:
property RawCompilerOptions.allowUnreachableCode?: boolean → property RawCompilerOptions.allowUnreachableCode?: boolean | null - changed:
property RawCompilerOptions.allowUnusedLabels?: boolean → property RawCompilerOptions.allowUnusedLabels?: boolean | null - changed:
property RawCompilerOptions.alwaysStrict?: boolean → property RawCompilerOptions.alwaysStrict?: boolean | null - changed:
property RawCompilerOptions.assumeChangesOnlyAffectDirectDependencies?: boolean → property RawCompilerOptions.assumeChangesOnlyAffectDirectDependencies?: boolean | null - changed:
property RawCompilerOptions.baseUrl?: string → property RawCompilerOptions.baseUrl?: string | null - changed:
property RawCompilerOptions.charset?: string → property RawCompilerOptions.charset?: string | null - changed:
property RawCompilerOptions.checkJs?: boolean → property RawCompilerOptions.checkJs?: boolean | null - changed:
property RawCompilerOptions.composite?: boolean → property RawCompilerOptions.composite?: boolean | null - changed:
property RawCompilerOptions.declaration?: boolean → property RawCompilerOptions.declaration?: boolean | null - changed:
property RawCompilerOptions.declarationMap?: boolean → property RawCompilerOptions.declarationMap?: boolean | null - changed:
property RawCompilerOptions.diagnostics?: boolean → property RawCompilerOptions.diagnostics?: boolean | null - changed:
property RawCompilerOptions.disableReferencedProjectLoad?: boolean → property RawCompilerOptions.disableReferencedProjectLoad?: boolean | null - changed:
property RawCompilerOptions.disableSizeLimit?: boolean → property RawCompilerOptions.disableSizeLimit?: boolean | null - changed:
property RawCompilerOptions.disableSolutionSearching?: boolean → property RawCompilerOptions.disableSolutionSearching?: boolean | null - changed:
property RawCompilerOptions.disableSourceOfProjectReferenceRedirect?: boolean → property RawCompilerOptions.disableSourceOfProjectReferenceRedirect?: boolean | null - changed:
property RawCompilerOptions.downlevelIteration?: boolean → property RawCompilerOptions.downlevelIteration?: boolean | null - changed:
property RawCompilerOptions.emitBOM?: boolean → property RawCompilerOptions.emitBOM?: boolean | null - changed:
property RawCompilerOptions.emitDeclarationOnly?: boolean → property RawCompilerOptions.emitDeclarationOnly?: boolean | null - changed:
property RawCompilerOptions.emitDecoratorMetadata?: boolean → property RawCompilerOptions.emitDecoratorMetadata?: boolean | null - changed:
property RawCompilerOptions.esModuleInterop?: boolean → property RawCompilerOptions.esModuleInterop?: boolean | null - changed:
property RawCompilerOptions.experimentalDecorators?: boolean → property RawCompilerOptions.experimentalDecorators?: boolean | null - changed:
property RawCompilerOptions.extendedDiagnostics?: boolean → property RawCompilerOptions.extendedDiagnostics?: boolean | null - changed:
property RawCompilerOptions.fallbackPolling?: 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' → property RawCompilerOptions.fallbackPolling?: 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' | 'fixedInterval' | 'priorityInterval' | 'dynamicPriority' | 'fixedChunkSize' - changed:
property RawCompilerOptions.forceConsistentCasingInFileNames?: boolean → property RawCompilerOptions.forceConsistentCasingInFileNames?: boolean | null - changed:
property RawCompilerOptions.generateCpuProfile?: string → property RawCompilerOptions.generateCpuProfile?: string | null - changed:
property RawCompilerOptions.importHelpers?: boolean → property RawCompilerOptions.importHelpers?: boolean | null - changed:
property RawCompilerOptions.incremental?: boolean → property RawCompilerOptions.incremental?: boolean | null - changed:
property RawCompilerOptions.inlineSourceMap?: boolean → property RawCompilerOptions.inlineSourceMap?: boolean | null - changed:
property RawCompilerOptions.inlineSources?: boolean → property RawCompilerOptions.inlineSources?: boolean | null - changed:
property RawCompilerOptions.isolatedModules?: boolean → property RawCompilerOptions.isolatedModules?: boolean | null - changed:
property RawCompilerOptions.jsxFactory?: string → property RawCompilerOptions.jsxFactory?: string | null - changed:
property RawCompilerOptions.jsxFragmentFactory?: string → property RawCompilerOptions.jsxFragmentFactory?: string | null - changed:
property RawCompilerOptions.jsxImportSource?: string → property RawCompilerOptions.jsxImportSource?: string | null - changed:
property RawCompilerOptions.keyofStringsOnly?: boolean → property RawCompilerOptions.keyofStringsOnly?: boolean | null - changed:
property RawCompilerOptions.lib?: Array<('ES5' | 'ES6' | 'ES2015' | 'ES2015.Collection' | 'ES2015.Core' | 'ES2015.Generator' | 'ES2015.Iterable' | 'ES2015.Promise' | 'ES2015.Proxy' | 'ES2015.Reflect' | 'ES2015.Symbol.WellKnown' | 'ES2015.Symbol' | 'ES2016' | 'ES2016.Array.Include' | 'ES2017' | 'ES2017.Intl' | 'ES2017.Object' | 'ES2017.SharedMemory' | 'ES2017.String' | 'ES2017.TypedArrays' | 'ES20… → property RawCompilerOptions.lib?: Array<(('ES5' | 'ES6' | 'ES2015' | 'ES2015.Collection' | 'ES2015.Core' | 'ES2015.Generator' | 'ES2015.Iterable' | 'ES2015.Promise' | 'ES2015.Proxy' | 'ES2015.Reflect' | 'ES2015.Symbol.WellKnown' | 'ES2015.Symbol' | 'ES2016' | 'ES2016.Array.Include' | 'ES2017' | 'ES2017.Intl' | 'ES2017.Object' | 'ES2017.SharedMemory' | 'ES2017.String' | 'ES2017.TypedArrays' | 'ES2… - changed:
property RawCompilerOptions.listEmittedFiles?: boolean → property RawCompilerOptions.listEmittedFiles?: boolean | null - changed:
property RawCompilerOptions.listFiles?: boolean → property RawCompilerOptions.listFiles?: boolean | null - changed:
property RawCompilerOptions.listFilesOnly?: boolean → property RawCompilerOptions.listFilesOnly?: boolean | null - changed:
property RawCompilerOptions.mapRoot?: string → property RawCompilerOptions.mapRoot?: string | null - changed:
property RawCompilerOptions.maxNodeModuleJsDepth?: number → property RawCompilerOptions.maxNodeModuleJsDepth?: number | null - changed:
property RawCompilerOptions.module?: ('CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ESNext' | 'None') | string → property RawCompilerOptions.module?: ('CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ESNext' | 'None' | 'ES2022' | 'Node16' | 'NodeNext' | 'Preserve') & (((('CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ESNext' | 'None' | 'ES2022' | 'Node16' | 'NodeNext' | 'Preserve') | { [k: string]: unknown }) & string) | ((('CommonJS' | 'AMD' | 'System' | 'UMD'… - changed:
property RawCompilerOptions.moduleResolution?: ('Classic' | 'Node') | string → property RawCompilerOptions.moduleResolution?: ('Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler') & (((('Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler') | { [k: string]: unknown }) & string) | ((('Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler') | { [k: string]: unknown }) & null)) - changed:
property RawCompilerOptions.newLine?: ('crlf' | 'lf') | string → property RawCompilerOptions.newLine?: ('crlf' | 'lf') & (((('crlf' | 'lf') | { [k: string]: unknown }) & string) | ((('crlf' | 'lf') | { [k: string]: unknown }) & null)) - changed:
property RawCompilerOptions.noEmit?: boolean → property RawCompilerOptions.noEmit?: boolean | null - changed:
property RawCompilerOptions.noEmitHelpers?: boolean → property RawCompilerOptions.noEmitHelpers?: boolean | null - changed:
property RawCompilerOptions.noEmitOnError?: boolean → property RawCompilerOptions.noEmitOnError?: boolean | null - changed:
property RawCompilerOptions.noErrorTruncation?: boolean → property RawCompilerOptions.noErrorTruncation?: boolean | null - changed:
property RawCompilerOptions.noFallthroughCasesInSwitch?: boolean → property RawCompilerOptions.noFallthroughCasesInSwitch?: boolean | null - changed:
property RawCompilerOptions.noImplicitAny?: boolean → property RawCompilerOptions.noImplicitAny?: boolean | null - changed:
property RawCompilerOptions.noImplicitReturns?: boolean → property RawCompilerOptions.noImplicitReturns?: boolean | null - changed:
property RawCompilerOptions.noImplicitThis?: boolean → property RawCompilerOptions.noImplicitThis?: boolean | null - changed:
property RawCompilerOptions.noImplicitUseStrict?: boolean → property RawCompilerOptions.noImplicitUseStrict?: boolean | null - changed:
property RawCompilerOptions.noLib?: boolean → property RawCompilerOptions.noLib?: boolean | null - changed:
property RawCompilerOptions.noPropertyAccessFromIndexSignature?: boolean → property RawCompilerOptions.noPropertyAccessFromIndexSignature?: boolean | null - changed:
property RawCompilerOptions.noResolve?: boolean → property RawCompilerOptions.noResolve?: boolean | null - changed:
property RawCompilerOptions.noStrictGenericChecks?: boolean → property RawCompilerOptions.noStrictGenericChecks?: boolean | null - changed:
property RawCompilerOptions.noUncheckedIndexedAccess?: boolean → property RawCompilerOptions.noUncheckedIndexedAccess?: boolean | null - changed:
property RawCompilerOptions.noUnusedLocals?: boolean → property RawCompilerOptions.noUnusedLocals?: boolean | null - changed:
property RawCompilerOptions.noUnusedParameters?: boolean → property RawCompilerOptions.noUnusedParameters?: boolean | null - changed:
property RawCompilerOptions.outDir?: string → property RawCompilerOptions.outDir?: string | null - changed:
property RawCompilerOptions.outFile?: string → property RawCompilerOptions.outFile?: string | null - changed:
property RawCompilerOptions.paths?: { [k: string]: string[] } → property RawCompilerOptions.paths?: { [k: string]: Array<string | null> | null } | null - changed:
property RawCompilerOptions.plugins?: Array<{ name?: string; [k: string]: unknown }> → property RawCompilerOptions.plugins?: Array<{ name?: string | null; [k: string]: unknown } | null> | null - changed:
property RawCompilerOptions.preserveConstEnums?: boolean → property RawCompilerOptions.preserveConstEnums?: boolean | null - changed:
property RawCompilerOptions.preserveSymlinks?: boolean → property RawCompilerOptions.preserveSymlinks?: boolean | null - changed:
property RawCompilerOptions.preserveWatchOutput?: boolean → property RawCompilerOptions.preserveWatchOutput?: boolean | null - changed:
property RawCompilerOptions.pretty?: boolean → property RawCompilerOptions.pretty?: boolean | null - changed:
property RawCompilerOptions.reactNamespace?: string → property RawCompilerOptions.reactNamespace?: string | null - changed:
property RawCompilerOptions.removeComments?: boolean → property RawCompilerOptions.removeComments?: boolean | null - changed:
property RawCompilerOptions.resolveJsonModule?: boolean → property RawCompilerOptions.resolveJsonModule?: boolean | null - changed:
property RawCompilerOptions.rootDir?: string → property RawCompilerOptions.rootDir?: string | null - changed:
property RawCompilerOptions.rootDirs?: string[] → property RawCompilerOptions.rootDirs?: Array<string | null> | null - changed:
property RawCompilerOptions.skipDefaultLibCheck?: boolean → property RawCompilerOptions.skipDefaultLibCheck?: boolean | null - changed:
property RawCompilerOptions.skipLibCheck?: boolean → property RawCompilerOptions.skipLibCheck?: boolean | null - changed:
property RawCompilerOptions.sourceMap?: boolean → property RawCompilerOptions.sourceMap?: boolean | null - changed:
property RawCompilerOptions.sourceRoot?: string → property RawCompilerOptions.sourceRoot?: string | null - changed:
property RawCompilerOptions.strict?: boolean → property RawCompilerOptions.strict?: boolean | null - changed:
property RawCompilerOptions.strictBindCallApply?: boolean → property RawCompilerOptions.strictBindCallApply?: boolean | null - changed:
property RawCompilerOptions.strictFunctionTypes?: boolean → property RawCompilerOptions.strictFunctionTypes?: boolean | null - changed:
property RawCompilerOptions.strictNullChecks?: boolean → property RawCompilerOptions.strictNullChecks?: boolean | null - changed:
property RawCompilerOptions.strictPropertyInitialization?: boolean → property RawCompilerOptions.strictPropertyInitialization?: boolean | null - changed:
property RawCompilerOptions.suppressExcessPropertyErrors?: boolean → property RawCompilerOptions.suppressExcessPropertyErrors?: boolean | null - changed:
property RawCompilerOptions.suppressImplicitAnyIndexErrors?: boolean → property RawCompilerOptions.suppressImplicitAnyIndexErrors?: boolean | null - changed:
property RawCompilerOptions.target?: ('ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ESNext') | string → property RawCompilerOptions.target?: ('ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ES2021' | 'ES2022' | 'ES2023' | 'ESNext') & (((('ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ES2021' | 'ES2022' | 'ES2023' | 'ESNext') | { [k: string]: unknown }) & string) | ((('ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' |… - changed:
property RawCompilerOptions.traceResolution?: boolean → property RawCompilerOptions.traceResolution?: boolean | null - changed:
property RawCompilerOptions.tsBuildInfoFile?: string → property RawCompilerOptions.tsBuildInfoFile?: string | null - changed:
property RawCompilerOptions.typeRoots?: string[] → property RawCompilerOptions.typeRoots?: Array<string | null> | null - changed:
property RawCompilerOptions.types?: string[] → property RawCompilerOptions.types?: Array<string | null> | null - changed:
property RawCompilerOptions.useDefineForClassFields?: boolean → property RawCompilerOptions.useDefineForClassFields?: boolean | null - changed:
property RawCompilerOptions.watch?: boolean → property RawCompilerOptions.watch?: boolean | null - changed:
property RawCompilerOptions.watchDirectory?: 'useFsEvents' | 'fixedPollingInterval' | 'dynamicPriorityPolling' → property RawCompilerOptions.watchDirectory?: 'useFsEvents' | 'fixedPollingInterval' | 'dynamicPriorityPolling' | 'fixedChunkSizePolling' - changed:
property RawCompilerOptions.watchFile?: 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' | 'useFsEvents' | 'useFsEventsOnParentDirectory' → property RawCompilerOptions.watchFile?: 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' | 'useFsEvents' | 'useFsEventsOnParentDirectory' | 'fixedChunkSizePolling' - added:
property RawCompilerOptions.allowArbitraryExtensions?: boolean | null - added:
property RawCompilerOptions.allowImportingTsExtensions?: boolean | null - added:
property RawCompilerOptions.customConditions?: Array<string | null> | null - added:
property RawCompilerOptions.exactOptionalPropertyTypes?: boolean | null - added:
property RawCompilerOptions.moduleDetection?: 'auto' | 'legacy' | 'force' - added:
property RawCompilerOptions.noImplicitOverride?: boolean | null - added:
property RawCompilerOptions.preserveValueImports?: boolean | null - added:
property RawCompilerOptions.resolvePackageJsonExports?: boolean | null - added:
property RawCompilerOptions.resolvePackageJsonImports?: boolean | null - added:
property RawCompilerOptions.useUnknownInCatchVariables?: boolean | null - added:
property RawCompilerOptions.verbatimModuleSyntax?: boolean | null
- added:
const isModernNodeModuleKind: (module: ts.ModuleKind | undefined) => boolean - added:
const tsTranspileModule: ExtendedTsTranspileModuleFn
- removed:
interface TEsBuild - removed:
interface TsJestDiagnosticsCfg - removed:
interface TsJestGlobalOptions - removed:
method TEsBuild.transformSync(input: string, options?: { loader: 'ts' | 'js'; format: 'cjs' | 'esm'; target: string }): { code: string; map: string } - removed:
property TsJestDiagnosticsCfg.exclude: string[] - removed:
property TsJestDiagnosticsCfg.ignoreCodes: number[] - removed:
property TsJestDiagnosticsCfg.pretty: boolean - removed:
property TsJestDiagnosticsCfg.throws: boolean - removed:
property TsJestDiagnosticsCfg.warnOnly?: boolean - removed:
property TsJestGlobalOptions.astTransformers?: ConfigCustomTransformer - removed:
property TsJestGlobalOptions.babelConfig?: boolean | string | BabelConfig - removed:
property TsJestGlobalOptions.compiler?: 'typescript' | 'ttypescript' | string - removed:
property TsJestGlobalOptions.diagnostics?: boolean | { pretty?: boolean; ignoreCodes?: number | string | Array<number | string>; exclude?: string[]; warnOnly?: boolean } - removed:
property TsJestGlobalOptions.isolatedModules?: boolean - removed:
property TsJestGlobalOptions.stringifyContentPathRegex?: string | RegExp - removed:
property TsJestGlobalOptions.tsconfig?: boolean | string | RawCompilerOptions - removed:
property TsJestGlobalOptions.useESM?: boolean - removed:
type TBabelJest = typeof babelJest - changed:
interface TransformOptionsTsJest extends TransformOptions → interface TransformOptionsTsJest<TransformerConfig = unknown> extends TransformOptions<TransformerConfig> - changed:
property GlobalConfigTsJest.'ts-jest': TsJestGlobalOptions → property GlobalConfigTsJest.'ts-jest'?: TsJestGlobalOptions - changed:
property TransformOptionsTsJest.config: ProjectConfigTsJest → property TransformOptionsTsJest.config: Config.ProjectConfig - changed:
type TsJestPresets = Pick<Config.InitialOptions, 'extensionsToTreatAsEsm' | 'moduleFileExtensions' | 'transform' | 'testMatch'> → type TsJestPresets = Pick<JestConfigWithTsJest, 'extensionsToTreatAsEsm' | 'moduleFileExtensions' | 'transform' | 'testMatch'> - added:
interface JestConfigWithTsJest extends Omit<Config.InitialOptions, 'transform'> - added:
property JestConfigWithTsJest.transform?: { [regex: string]: 'ts-jest' | 'ts-jest/legacy' | ['ts-jest', TsJestTransformerOptions] | ['ts-jest/legacy', TsJestTransformerOptions] } | Config.InitialOptions['transform'] - added:
type DefaultEsmLegacyPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_TS_TRANSFORM_PATTERN]: ['ts-jest/legacy', { useESM: true } & DefaultEsmTransformOptions] } } - added:
type DefaultEsmPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_TS_TRANSFORM_PATTERN]: ['ts-jest', { useESM: true } & DefaultEsmTransformOptions] } } - added:
type DefaultEsmTransformOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type DefaultLegacyPreset = { transform: { [TS_TRANSFORM_PATTERN]: ['ts-jest/legacy', DefaultTransformOptions] } } - added:
type DefaultPreset = { transform: { [TS_TRANSFORM_PATTERN]: ['ts-jest', DefaultTransformOptions] } } - added:
type DefaultTransformOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type JsWithBabelEsmLegacyPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_JS_TRANSFORM_PATTERN]: 'babel-jest'; [ESM_TS_TRANSFORM_PATTERN]: ['ts-jest/legacy', { useESM: true } & Js… - added:
type JsWithBabelEsmPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_JS_TRANSFORM_PATTERN]: 'babel-jest'; [ESM_TS_TRANSFORM_PATTERN]: ['ts-jest', { useESM: true } & JsWithBab… - added:
type JsWithBabelEsmTransformOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type JsWithBabelLegacyPreset = { transform: { [JS_TRANSFORM_PATTERN]: 'babel-jest'; [TS_TRANSFORM_PATTERN]: ['ts-jest/legacy', JsWithBabelTransformerOptions] } } - added:
type JsWithBabelPreset = { transform: { [JS_TRANSFORM_PATTERN]: 'babel-jest'; [TS_TRANSFORM_PATTERN]: ['ts-jest', JsWithBabelTransformerOptions] } } - added:
type JsWithBabelTransformerOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type JsWithTsEsmLegacyPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_TS_JS_TRANSFORM_PATTERN]: ['ts-jest/legacy', { useESM: true } & JsWithTsEsmTransformOptions] } } - added:
type JsWithTsEsmPreset = { extensionsToTreatAsEsm: string[]; transform: { [ESM_TS_JS_TRANSFORM_PATTERN]: ['ts-jest', { useESM: true } & JsWithTsEsmTransformOptions] } } - added:
type JsWithTsEsmTransformOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type JsWithTsLegacyPreset = { transform: { [TS_JS_TRANSFORM_PATTERN]: ['ts-jest/legacy', JsWithTsTransformOptions] } } - added:
type JsWithTsPreset = { transform: { [TS_JS_TRANSFORM_PATTERN]: ['ts-jest', JsWithTsTransformOptions] } } - added:
type JsWithTsTransformOptions = Omit<TsJestTransformerOptions, 'useESM'> - added:
type TsJestGlobalOptions = Config.TransformerConfig[1] & { tsconfig?: boolean | string | RawCompilerOptions | TsConfigCompilerOptionsJson; isolatedModules?: boolean; compiler?: 'typescri… - added:
type TsJestTransformOptions = TransformOptions<TsJestTransformerOptions> - added:
type TsJestTransformerOptions = TsJestGlobalOptions
- added:
const TsJestDiagnosticCodes: { readonly Generic: 151000; readonly ConfigModuleOption: 151001; readonly ModernNodeModule: 151002 }
- added:
export * from './diagnostics'
- changed:
let rootLogger: import('bs-logger/dist/logger').Logger → let rootLogger: import('bs-logger').Logger
- removed:
declare global
- removed:
const _default: { defaults: TsJestPresets; defaultsLegacy: TsJestPresets; defaultsESM: TsJestPresets; defaultsESMLegacy: TsJestPresets; jsWithTs: TsJestPresets; jsWithTsLegacy… - changed:
export = _default → export = allPresets