Packages

@jest/transform

30.5.2 · 18 Sep 2026MIT80.4M / weekRepositoryHomepagenpmAtom feed

Your version

25.2.0

25 Mar 2020Where it was published

25.5.1 is the newest release of 25.x.

In short

1 breaking6 new1 faster23 fixed7 internal

  • breaking

    jest-haste-map: Remove mapper option

Release note

Features

  • jest-config: Support ESM config files with .js extension (#9573).

  • jest-runtime: Override module.createRequire to return a Jest-compatible require function

  • breaking

    jest-haste-map: Remove mapper option

  • *: Support array of paths for moduleNameMapper aliases

  • jest-reporters: Adds ability to pass options to the istanbul-reporter through coverageReporters

  • jest-runtime: Require stack when a module cannot be resolved

  • jest-transform: writeCacheFile no longer calls fsync

Fixes

  • expect: Handle readonly properties correctly

  • jest-cli: Set coverageProvider correctly when provided in config

  • jest-cli: Allow specifying .cjs and .mjs config files by --config CLI option

  • jest-cli: Update yargs to fix CLI flag overriding

  • jest-config: Treat setupFilesAfterEnv like setupFiles when normalizing configs against presets

  • jest-config: Support .mjs config files on Windows as well

  • jest-config: Verify rootDir and all roots are directories

  • jest-config: Ensure pattern of replacePosixSep is a string

  • jest-haste-map: Fix crash on unix based systems without find

  • jest-jasmine2: Fix --testNamePattern matching with concurrent tests

  • jest-matcher-utils: Fix diff highlight of symbol-keyed object.

  • @jest/reporters: Notifications should be fire&forget rather than having a timeout

  • jest-resolve: Fix module identity preservation with symlinks and browser field resolution

  • jest-resolve: Do not confuse directories with files

  • jest-resolve: moduleNameMapper should take precedence over Node core modules

  • jest-runtime: Reset isolateModules if it fails

  • jest-runtime: Yarn PnP errors displayed to the user

  • jest-snapshot: Downgrade semver to v6 to support node 8

  • jest-snapshot: Properly indent new snapshots in the presences of existing ones

  • jest-transform: Correct sourcemap behavior for transformed and instrumented code

  • jest-transform: Allow instrumentation of transformed files with weird file extensions

  • @jest/types: Make ConfigGlobals an interface to allow for declaration merging.

  • pretty-format: Export OldPlugin type

Performance

  • jest-haste-map: Reduce number of lstat calls in node crawler