Rename testPathPattern to testPathPatterns
Renames the testPathPattern option to testPathPatterns in the @nx/jest:jest executor configuration to align with Jest v30 CLI changes. Read more at the Jest v30 migration notes.
Examples
Rename the option in project configuration:
1{
2  "targets": {
3    "test": {
4      "executor": "@nx/jest:jest",
5      "options": {
6        "jestConfig": "apps/myapp/jest.config.ts",
7        "testPathPattern": "some-regex"
8      }
9    }
10  }
11}
12Rename the option in project configuration with configurations:
1{
2  "targets": {
3    "test": {
4      "executor": "@nx/jest:jest",
5      "options": {
6        "jestConfig": "apps/myapp/jest.config.ts",
7        "testPathPattern": "some-regex"
8      },
9      "configurations": {
10        "development": { "testPathPattern": "regex-dev" },
11        "production": { "testPathPattern": "regex-prod" }
12      }
13    }
14  }
15}
16Rename the option in a target default using the @nx/jest:jest executor:
1{
2  "targetDefaults": {
3    "test": {
4      "executor": "@nx/jest:jest",
5      "options": {
6        "jestConfig": "{projectRoot}/jest.config.ts",
7        "testPathPattern": "some-regex"
8      }
9    }
10  }
11}
12Rename the option in a target default using the @nx/jest:jest executor as the key:
1{
2  "targetDefaults": {
3    "@nx/jest:jest": {
4      "options": {
5        "jestConfig": "{projectRoot}/jest.config.ts",
6        "testPathPattern": "some-regex"
7      }
8    }
9  }
10}
11