Upgrading ts-jest 24 to 25
Unknown24.3.0 → 25.5.1
Fetching 12 releases from GitHub…0 / 12
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Node.js requirement changed in 25.3.0: >= 6 → >= 8.
Adds micromatch 4.x.
Drops resolve.
Also installs braces, decamelize, fill-range, is-number, picomatch, to-regex-range.
No longer installs es-errors, function-bind, hasown, is-core-module, path-parse, supports-preserve-symlinks-flag.
Moves camelcase 4.1.0 → 5.3.1, semver 5.7.2 → 6.3.1, yargs-parser 10.1.0 → 18.1.3. Your build may pick other versions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface Config.ConfigGlobals - added:
namespace Config - added:
property Config.ConfigGlobals.'ts-jest': TsJestGlobalOptions
- removed:
get ConfigSet.astTransformers(): AstTransformerDesc[] - removed:
get ConfigSet.babel(): BabelConfig | undefined - removed:
get ConfigSet.babelJestTransformer(): BabelJestTransformer | undefined - removed:
get ConfigSet.cacheKey(): string - removed:
get ConfigSet.compilerModule(): TTypeScript - removed:
get ConfigSet.cwd(): string - removed:
get ConfigSet.hooks(): TsJestHooksMap - removed:
get ConfigSet.jest(): jest.ProjectConfig - removed:
get ConfigSet.overriddenCompilerOptions(): Partial<CompilerOptions> - removed:
get ConfigSet.projectDependencies(): Record<string, string> - removed:
get ConfigSet.projectPackageJson(): Record<string, any> - removed:
get ConfigSet.rootDir(): string - removed:
get ConfigSet.shouldReportDiagnostic(): (filePath: string) => boolean - removed:
get ConfigSet.shouldStringifyContent(): (filePath: string) => boolean - removed:
get ConfigSet.tsCacheDir(): string | undefined - removed:
get ConfigSet.tsCustomTransformers(): CustomTransformers - removed:
get ConfigSet.tsJest(): TsJestConfig - removed:
get ConfigSet.tsconfig(): any - removed:
get ConfigSet.typescript(): ParsedCommandLine - removed:
method ConfigSet.resolvePath(inputPath: string, { throwIfMissing, nodeResolve }?: { throwIfMissing?: boolean; nodeResolve?: boolean }): string - changed:
constructor ConfigSet(jestConfig: jest.ProjectConfig, parentOptions?: TsJestGlobalOptions | undefined, parentLogger?: Logger) → constructor ConfigSet(jestConfig: Config.ProjectConfig, parentOptions?: TsJestGlobalOptions | undefined, parentLogger?: Logger)
- changed:
function createJestPreset({ allowJs }?: CreateJestPresetOptions, from?: jest.InitialOptions): TsJestPresets → function createJestPreset({ allowJs }?: CreateJestPresetOptions, from?: Config.InitialOptions): TsJestPresets - changed:
property TsJestPresets.transform: Record<string, string> → property TsJestPresets.transform: Config.InitialOptions['transform']
- changed:
const pathsToModuleNameMapper: (mapping: import('typescript').MapLike<string[]>, { prefix }?: { prefix?: string | undefined }) => { [key: string]: string } | undefined → const pathsToModuleNameMapper: (mapping: import('typescript').MapLike<string[]>, { prefix }?: { prefix?: string | undefined }) => { [key: string]: string | string[] } | undefined
- changed:
const pathsToModuleNameMapper: (mapping: import('typescript').MapLike<string[]>, { prefix }?: { prefix?: string | undefined }) => { [key: string]: string } | undefined → const pathsToModuleNameMapper: (mapping: import('typescript').MapLike<string[]>, { prefix }?: { prefix?: string | undefined }) => { [key: string]: string | string[] } | undefined - added:
declare module '@jest/types'
- removed:
readonly property TsJestTransformer.id: number - removed:
readonly property TsJestTransformer.logger: Logger - removed:
readonly property TsJestTransformer.options: TsJestGlobalOptions - removed:
static get TsJestTransformer.lastTransformerId(): number - changed:
class TsJestTransformer implements jest.Transformer → class TsJestTransformer implements Transformer - changed:
method TsJestTransformer.configsFor(jestConfig: jest.ProjectConfig | string): ConfigSet → method TsJestTransformer.configsFor(jestConfig: Config.ProjectConfig): ConfigSet - changed:
method TsJestTransformer.getCacheKey(fileContent: string, filePath: string, jestConfigStr: string, transformOptions?: { instrument?: boolean; rootDir?: string }): string → method TsJestTransformer.getCacheKey(fileContent: string, filePath: string, _jestConfigStr: string, transformOptions: CacheKeyOptions): string - changed:
method TsJestTransformer.process(input: string, filePath: jest.Path, jestConfig: jest.ProjectConfig, transformOptions?: jest.TransformOptions): jest.TransformedSource | string → method TsJestTransformer.process(input: string, filePath: Config.Path, jestConfig: Config.ProjectConfig, transformOptions?: TransformOptions): TransformedSource | string
- removed:
interface AstTransformerDesc - removed:
interface IPackageJson - removed:
interface TSCommon - removed:
interface TsJestHooksMap - removed:
interface TypeInfo - removed:
method AstTransformerDesc.factory(cs: ConfigSet): TransformerFactory<SourceFile> - removed:
method TsCompiler.compile(code: string, fileName: string, lineOffset?: number): string - removed:
method TsCompiler.getTypeInfo(code: string, fileName: string, position: number): TypeInfo - removed:
method TsJestHooksMap.afterProcess?(args: any[], result: string | jest.TransformedSource): string | jest.TransformedSource | void - removed:
property AstTransformerDesc.name: string - removed:
property AstTransformerDesc.version: number - removed:
property IPackageJson.main: string - removed:
property TSCommon.ModuleKind: typeof _ts.ModuleKind - removed:
property TSCommon.ScriptSnapshot: typeof _ts.ScriptSnapshot - removed:
property TSCommon.ScriptTarget: typeof _ts.ScriptTarget - removed:
property TSCommon.createLanguageService: typeof _ts.createLanguageService - removed:
property TSCommon.displayPartsToString: typeof _ts.displayPartsToString - removed:
property TSCommon.findConfigFile: typeof _ts.findConfigFile - removed:
property TSCommon.flattenDiagnosticMessageText: typeof _ts.flattenDiagnosticMessageText - removed:
property TSCommon.formatDiagnostics: typeof _ts.formatDiagnostics - removed:
property TSCommon.formatDiagnosticsWithColorAndContext: typeof _ts.formatDiagnosticsWithColorAndContext - removed:
property TSCommon.getDefaultLibFilePath: typeof _ts.getDefaultLibFilePath - removed:
property TSCommon.getPreEmitDiagnostics: typeof _ts.getPreEmitDiagnostics - removed:
property TSCommon.parseJsonConfigFileContent: typeof _ts.parseJsonConfigFileContent - removed:
property TSCommon.readConfigFile: typeof _ts.readConfigFile - removed:
property TSCommon.sys: typeof _ts.sys - removed:
property TSCommon.transpileModule: typeof _ts.transpileModule - removed:
property TSCommon.version: typeof _ts.version - removed:
property TsCompiler.cachedir: string | undefined - removed:
property TsCompiler.cwd: string - removed:
property TsCompiler.extensions: string[] - removed:
property TsCompiler.ts: TSCommon - removed:
property TypeInfo.comment: string - removed:
property TypeInfo.name: string - removed:
type BabelConfig = _babel.TransformOptions - removed:
type BabelJestTransformer = { [K in Exclude<keyof jest.Transformer, 'createTransformer'>]: Exclude<jest.Transformer[K], undefined> } - removed:
type TBabelCore = typeof _babel - removed:
type TBabelJest = Required<jest.Transformer> - removed:
type TTypeScript = typeof _ts - changed:
property TsJestGlobalOptions.diagnostics?: boolean | { pretty?: boolean; ignoreCodes?: number | string | Array<number | string>; pathRegex?: RegExp | string; warnOnly?: boolean } → property TsJestGlobalOptions.diagnostics?: boolean | { pretty?: boolean; ignoreCodes?: number | string | (number | string)[]; pathRegex?: RegExp | string; warnOnly?: boolean } - changed:
property TsJestGlobalOptions.tsConfig?: boolean | string | CompilerOptions → property TsJestGlobalOptions.tsConfig?: boolean | string | _ts.CompilerOptions - added:
interface TSFile - added:
property TSFile.output?: string - added:
property TSFile.projectReference?: { project?: _ts.ResolvedProjectReference; outputFileName?: string } - added:
property TSFile.text?: string - added:
property TSFile.version: number - added:
property TsCompiler.program: _ts.Program | undefined - added:
property TsJestGlobalOptions.tsconfig?: boolean | string | _ts.CompilerOptions - added:
type TSFiles = Map<string, TSFile>