NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1699 most downloaded on npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript
Last release 1 months ago
22 Jul 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 57 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
10 years old
218 releases · first in 2016
cli: add migration tsConfig option for ts-jest config options (#2794) (781710b), closes #2764
One column per quarter.
add @types/jest as optional peerDependencies to solve yarn 2
compiler: add empty string file content to compiler cache (#2633) (0feb556), closes #2625
cli: keep testMatch if old jest config contains it (#2618) (c568f49), closes #2616
testMatch if old jest config contains it (#2618) (c568f49), closes #2616isolatedModules: false use updated compiler options (#2628) (348e30f), closes #2629presets (#2624) (0ea025e), closes #2623.ts/.tsx/.d.ts files only (#2458) (a89f0e2), closes #2445undefined (#2433) (c6d6e4c), closes #2085@types/jest from direct dep (#2409) (8913120), closes #2406 #2411outDir from compiler source files (#2375) (ec68c74), closes #2350 #2374tsconfig option (#2383) (584324a), closes #2368astTransformers value changes (#2345) (d726016)node_modules when adding ts-jest (#2263) (8e0675c)TsCompiler as public api (#2344) (871cd6a)presets entry point (#2337) (1a3058f)Program (#2299) (387964f)pathRegex with exclude (#2295) (f2f99c3)js files based on checkJs (#2283) (1e04433)isolatedModules: false (#2269) (9bb0c05), closes #1709isolatedModule: true (#2219) (e101db0), closes #1709TsJestTransformer to have version checking (#2176) (ca8d7c4)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
refactor(config): show warning message for sourceMap: false (#2557) (cf60990).
compiler: return file content on emitSkipped for non ts/tsx files (#2515) (0320fb3), closes #2513
compiler: initialize compiler with .ts/.tsx/.d.ts files only (#2457) (1dc731a), closes #2445
undefined (#2433) (c6d6e4c), closes #2085@types/jest from direct dep (#2409) (8913120), closes #2406 #2411config: create fallback jest config when jest config is undefined (#2421) (0fb6b45), closes #2085
@types/jest from direct dep (#2416) (060302e), closes #2406 #2411outDir from compiler source files (#2375) (ec68c74), closes #2350 #2374tsconfig option (#2383) (584324a), closes #2368compiler: exclude files in outDir from compiler source files (#2376) (9034677), closes #2350 #2374
outDir from compiler source files (#2376) (9034677), closes #2350 #2374matchTestFilePath before setupTsJestCfg (#2373) (c427fea), closes #2371tsconfig/tsConfig option (#2377) (d4f6aff), closes #2368config: deprecate pathRegex in favor of exclude
presets entry point (#2341) (e12b004), closes #2325ts-jest custom AST transformer function signature has changed to
import type { TsCompilerInstance } from 'ts-jest/dist/types'
export function factory(compilerInstance: TsCompilerInstance) {
//...
}
pathRegex with exclude (#2295) (f2f99c3)js files based on checkJs (#2283) (1e04433)pathRegex should use exclude with Glob patterns.js files, please set checkJs: true in your tsconfigisolatedModule: true to have ESM support (#2219) (e101db0), closes #1709TsJestTransformer to have version checking (#2176) (ca8d7c4)isolatedModules: true and isolatedModule: false codes are in one single class TsCompiler which is an instance created in TsJestCompiler based on config option compiler with value typescript or ttypescript.astTransformers string array (#2129) (1e0b2ce)packageJson option (#2128) (05916b9)tsConfig option (#2127) (3cc9b80)packageJson config option is not used in internal ts-jest so this option is now removedjest.config.js/package.json should change to// jest.config.js
module.exports = {
//...
globals: {
'ts-jest': {
astTransformers: {
before: ['your_before_transformer_path'],
after: ['your_after_transformer_path'],
afterDeclarations: ['your_afterDeclarations_transformer_path'],
}
}
}
}
or
// package.json
{
"jest": {
"globals": {
"ts-jest": {
"astTransformers": {
"before": ["your_before_transformer_path"],
"after": ["your_after_transformer_path"],
"afterDeclarations": ["your_afterDeclarations_transformer_path"]
}
}
}
}
}
jest.config.js/** @typedef {import('ts-jest')} */
module.exports = {
//...
}
should change to
/** @typedef {import('ts-jest/dist/types')} */
module.exports = {
//...
}
mocked, createJestPreset, pathsToModuleNameMapper from package entry. One should change toimport { mocked, createJestPreset, pathsToModuleNameMapper` } from 'ts-jest/utils'
tsConfig should change to tsconfig in your jest.config.js or package.jsonNothing published for this version
revert usage of @jest/create-cache-key-function (#2108) (dee8231), closes #2080 #2090 #2104
Nothing published for this version
compiler: only exclude test files when initializing compiler (#2062) (7264c13), closes #2061, #2068, #2072, #2073
Nothing published for this version
config: deprecate tsConfig in favor of tsconfig
utils: MaybeMockedConstructor returns T
MaybeMockedConstructor returns T (#1976) (b7712b2)path.join and add check on prefix ends with / (#1989) (3d9035b), closes #1982pathsToModuleNameMapper resolve path mapping with path.join (#1969) (81fce4c), closes #1968jest-util version at 26.1.0 (#1914) (f00414c), closes #1913@jest/globals (#1937) (0e5be15), closes #1593path-mapping custom AST transformer (#1927) (3325186)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
compiler: check if test file exists before doing type check (#1827) (cc89d5b), closes #1506
Nothing published for this version
### Bug Fixes * revert #1793
compiler: use resolveModuleNames TypeScript API to get resolved modules for test files (#1784) (5f26054), closes #1747
resolveModuleNames TypeScript API to get resolved modules for test files (#1784) (5f26054), closes #1747tsconfig change (#1788) (6948855)isolatedModules: false (#1786) (7f731ed)globsToMatcher from jest-util (#1754) (44f3913)<a name="26.1.1"></a>
compiler: generate source map correctly when tsconfig mapRoot is set (#1741) (01ac417), closes #1718
mapRoot is set (#1741) (01ac417), closes #1718<a name="26.1.0"></a>
target version doesn't match with recommended NodeJs version (#1678) (085bdf5)pathsToModuleNameMapper (#1690) (a727bd5)<a name="26.0.0"></a>
undefined for getScriptVersion when a file doesn't exist in memory cache (#1641) (6851b8e)<a name="25.5.1"></a>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
compiler: don't resolve files from build folder for projectReferences
projectReferences (#1614) (74b92d3)include value of tsconfig to empty array (#1606) (8a29aaa)<a name="25.5.0"></a>
projectReferences work with isolatedModules: false (#1541) (3e8efbe)files provided by tsconfig (#1562) (a9f02bd)testMatchPatterns contain RegExp instance or string type values (#1569) (7f85bab)tsconfig alias to tsConfig option (#1565) (c10eb6d)ConfigGlobals interface of @jest/types (#1592) (4526392)isolatedModules: false (#1558) (85c09e3)jest need to be defined in files option of tsconfig.For example:
// tsconfig.json
{
// ...other configs
"files": [
"my-custom-typings.d.ts",
"my-global-module.ts"
]
}
incremental and compilerHost options are no longer available. Please remove it from your ts-jest config.<a name="25.5.0-beta.0"></a>
files provided by tsconfig (#1562) (907a280)testMatchPatterns contain RegExp instance or string type values (#1569) (7f85bab)jest need to be defined in files option of tsconfig.For example
// tsconfig.json
{
// ...other configs
"files": [
"my-custom-typings.d.ts".
"my-global-module.ts"
]
}
<a name="25.5.0-alpha.0"></a>
compilerHost and incremental options are no longer available<a name="25.4.0"></a>
projectReferences work with isolatedModules: true (#1527) (aa6b74c)LanguageService updated with test file information before getting diagnostics for test file (#1507) (311eaeb)outDir when allowJs is true and no outDir in tsconfig (#1502) (1a287ad)<a name="25.3.1"></a>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
only do type checking while compiling file
<a name="25.3.0"></a>
jest-config to dependencies list (6d9e0d8)TROUBLESHOOTING (96cd9b3)Program via ConfigSet TsCompiler (#1433) (7153246)<a name="25.2.1"></a>
<a name="25.2.0"></a>
<a name="25.1.0"></a>
<a name="25.0.0"></a>
<a name="24.3.0"></a>
<a name="24.2.0"></a>
<a name="24.1.0"></a>
<a name="24.0.2"></a>
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
handle tsBuildInfoFile option (f9583e9), closes #1095
Your coding agent can read these notes before it upgrades. Set up the MCP server →