Skip to content

The @nx/jest plugin provides various migrations to help you migrate to newer versions of jest projects within your Nx workspace. Below is a complete reference for all available migrations.

21.3.x

rename-test-path-pattern

Rename the CLI option testPathPattern to testPathPatterns.

replace-removed-matcher-aliases

Replace removed matcher aliases in Jest v30 with their corresponding matcher

Package Updates for 21.3.0

The following packages will be updated:

PackageVersion
jest~30.0.0
@types/jest~30.0.0
expect~30.0.0
@jest/globals~30.0.0
jest-jasmine2~30.0.0
jest-environment-jsdom~30.0.0
babel-jest~30.0.0
@swc/jest~0.2.38

Package Updates for 21.3.3

The following packages will be updated:

PackageVersion
ts-jest~29.4.0

Package Updates for 21.3.3-jest-util

The following packages will be updated:

PackageVersion
jest-util~30.0.0

21.0.x

replace-getJestProjects-with-getJestProjectsAsync-v21

Replace usage of getJestProjects with getJestProjectsAsync.

remove-tsconfig-option-from-jest-executor

Remove the previously deprecated and unused tsConfig option from the @nx/jest:jest executor.

20.0.x

replace-getJestProjects-with-getJestProjectsAsync

Replace usage of getJestProjects with getJestProjectsAsync.

19.6.x

Package Updates for 19.6.0

The following packages will be updated:

PackageVersion
jest~29.7.0
@types/jest~29.5.12
expect~29.7.0
@jest/globals~29.7.0
jest-jasmine2~29.7.0
jest-environment-jsdom~29.7.0
babel-jest~29.7.0

19.2.x

Package Updates for 19.2.0

The following packages will be updated:

PackageVersion
@swc/jest~0.2.36