Files
nrwl--nx/packages/jest/migrations.json
T
2026-07-13 12:38:36 +08:00

272 lines
10 KiB
JSON

{
"generators": {
"replace-getJestProjects-with-getJestProjectsAsync-v21": {
"cli": "nx",
"version": "21.0.0-beta.9",
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
"implementation": "./dist/src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
"documentation": "./dist/src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync.md"
},
"remove-tsconfig-option-from-jest-executor": {
"version": "21.0.0-beta.10",
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
"implementation": "./dist/src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
"documentation": "./dist/src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor.md"
},
"rename-test-path-pattern": {
"version": "21.3.0-beta.3",
"description": "Rename the CLI option `testPathPattern` to `testPathPatterns`.",
"implementation": "./dist/src/migrations/update-21-3-0/rename-test-path-pattern",
"documentation": "./dist/src/migrations/update-21-3-0/rename-test-path-pattern.md"
},
"replace-removed-matcher-aliases": {
"version": "21.3.0-beta.3",
"requires": {
"jest": ">=30.0.0"
},
"description": "Replace removed matcher aliases in Jest v30 with their corresponding matcher",
"implementation": "./dist/src/migrations/update-21-3-0/replace-removed-matcher-aliases",
"documentation": "./dist/src/migrations/update-21-3-0/replace-removed-matcher-aliases.md"
},
"convert-jest-config-to-cjs": {
"version": "22.2.0-beta.2",
"description": "Convert jest.config.ts files from ESM to CJS syntax (export default -> module.exports, import -> require) for projects using CommonJS resolution to ensure correct loading under Node.js type-stripping.",
"implementation": "./dist/src/migrations/update-22-2-0/convert-jest-config-to-cjs",
"documentation": "./dist/src/migrations/update-22-2-0/convert-jest-config-to-cjs.md"
},
"replace-removed-matcher-aliases-v22-3": {
"version": "22.3.2-beta.0",
"requires": {
"jest": ">=30.0.0"
},
"description": "Replace removed matcher aliases in Jest v30 with their corresponding matcher",
"implementation": "./dist/src/migrations/update-21-3-0/replace-removed-matcher-aliases",
"documentation": "./dist/src/migrations/update-21-3-0/replace-removed-matcher-aliases.md"
},
"update-snapshot-guide-link": {
"version": "23.0.0-beta.10",
"requires": {
"jest": ">=30.0.0"
},
"description": "Update the Jest snapshot guide link in `.snap` files from the legacy `https://goo.gl/fbAQLP` URL to `https://jestjs.io/docs/snapshot-testing`, which Jest v30 now requires.",
"implementation": "./dist/src/migrations/update-23-0-0/update-snapshot-guide-link",
"documentation": "./dist/src/migrations/update-23-0-0/update-snapshot-guide-link.md"
},
"rewrite-jest-internal-subpath-imports": {
"version": "23.0.0-beta.16",
"description": "Rewrites `@nx/jest/src/*` subpath imports now that the `./src/*` subpath is no longer exposed by `@nx/jest`'s exports map. Named imports/exports of public symbols are routed to `@nx/jest` and the rest to the new `@nx/jest/internal` entry; `require`, dynamic `import` and `jest.mock` calls reference the whole module and are routed to `@nx/jest/internal`.",
"implementation": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
},
"rewrite-jest-project-generator": {
"version": "23.0.0-beta.16",
"description": "Replaces the removed `jestProjectGenerator` export from `@nx/jest` with its replacement `configurationGenerator`.",
"implementation": "./dist/src/migrations/update-23-0-0/rewrite-jest-project-generator"
},
"migrate-jest-executor-setup-file": {
"version": "23.0.0-beta.22",
"description": "Migrate the deprecated `setupFile` option of the `@nx/jest:jest` executor: push the file path into `setupFilesAfterEnv` in the project's Jest config and remove the option from `project.json` and `nx.json` target defaults.",
"implementation": "./dist/src/migrations/update-23-0-0/migrate-jest-executor-setup-file"
},
"migrate-jest-configuration-skip-setup-file": {
"version": "23.0.0-beta.22",
"description": "Migrate the deprecated `skipSetupFile` option of the `@nx/jest:configuration` generator stored as a default in `nx.json` or per-project `project.json` to `setupFile: 'none'` (when `true`) or remove it (when `false`).",
"implementation": "./dist/src/migrations/update-23-0-0/migrate-jest-configuration-skip-setup-file"
},
"update-23-0-0-migrate-create-nodes-v2-import": {
"version": "23.0.0-beta.24",
"description": "Rename imports of `createNodesV2` from `@nx/jest/plugin` to the canonical `createNodes` export.",
"implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
"documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
},
"set-ts-jest-isolated-modules": {
"version": "23.1.0-beta.4",
"requires": {
"ts-jest": ">=29.2.0"
},
"description": "Set `isolatedModules: true` in `tsconfig.spec.json` for ts-jest projects on TypeScript < 6 (ts-jest 29.2+ forces `moduleResolution: node10` on the CommonJS path, which ignores package `exports` maps and breaks resolution of exports-only workspace libraries), then verify the workspace still typechecks and remedy any failures the change surfaced.",
"implementation": "./dist/src/migrations/update-23-1-0/set-ts-jest-isolated-modules",
"prompt": "./dist/src/migrations/update-23-1-0/verify-typecheck.md",
"documentation": "./dist/src/migrations/update-23-1-0/set-ts-jest-isolated-modules.md"
}
},
"packageJsonUpdates": {
"21.3.0": {
"version": "21.3.0-beta.3",
"x-prompt": "Do you want to update the Jest version to v30?",
"incompatibleWith": {
"@angular-devkit/build-angular": "< 21.0.0"
},
"requires": {
"jest": ">=29.0.0 <30.0.0"
},
"packages": {
"jest": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"@types/jest": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"expect": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"@jest/globals": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"jest-jasmine2": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"jest-environment-jsdom": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"babel-jest": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
},
"@swc/jest": {
"version": "~0.2.38",
"alwaysAddToPackageJson": false
}
}
},
"21.3.3": {
"version": "21.3.3-beta.0",
"packages": {
"ts-jest": {
"version": "~29.4.0",
"alwaysAddToPackageJson": false
}
}
},
"21.3.3-jest-util": {
"version": "21.3.3-beta.3",
"requires": {
"jest": ">=30.0.0 <31.0.0",
"ts-jest": ">=29.4.0"
},
"packages": {
"jest-util": {
"version": "~30.0.0",
"addToPackageJson": "devDependencies"
}
}
},
"22.3.0": {
"version": "22.3.0-beta.3",
"x-prompt": "Do you want to update the Jest version to v30?",
"incompatibleWith": {
"@angular-devkit/build-angular": "< 21.0.0"
},
"requires": {
"jest": ">= 29.0.0 < 30.0.0"
},
"packages": {
"jest": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"@types/jest": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"expect": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"@jest/globals": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"jest-jasmine2": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"jest-environment-jsdom": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"jest-util": {
"version": "^30.0.0",
"addToPackageJson": "devDependencies"
},
"babel-jest": {
"version": "^30.0.0",
"alwaysAddToPackageJson": false
},
"@swc/jest": {
"version": "~0.2.38",
"alwaysAddToPackageJson": false
}
}
},
"22.3.0-jest-preset-angular": {
"version": "22.3.0-beta.3",
"requires": {
"@angular/compiler-cli": ">=19.0.0 <22.0.0",
"@angular/core": ">=19.0.0 <22.0.0",
"@angular/platform-browser": ">=19.0.0 <22.0.0",
"@angular/platform-browser-dynamic": ">=19.0.0 <22.0.0",
"jest": "^30.0.0"
},
"packages": {
"jest-preset-angular": {
"version": "~16.0.0",
"alwaysAddToPackageJson": false
}
}
},
"23.0.0-pin-jest-30-3-for-rn-compat": {
"version": "23.0.0-beta.9",
"requires": {
"jest": ">=30.0.0"
},
"packages": {
"jest": {
"version": "~30.3.0",
"alwaysAddToPackageJson": false
},
"babel-jest": {
"version": "~30.3.0",
"alwaysAddToPackageJson": false
},
"@types/jest": {
"version": "~30.0.0",
"alwaysAddToPackageJson": false
}
}
},
"23.1.0-ts-jest": {
"version": "23.1.0-beta.0",
"requires": {
"ts-jest": ">=29.0.0 <29.4.7"
},
"packages": {
"ts-jest": {
"version": "^29.4.7",
"alwaysAddToPackageJson": false
}
}
},
"23.1.0-jest-preset-angular": {
"version": "23.1.0-beta.0",
"requires": {
"@angular/compiler-cli": ">=22.0.0 <23.0.0",
"@angular/core": ">=22.0.0 <23.0.0",
"@angular/platform-browser": ">=22.0.0 <23.0.0",
"jest": "^30.0.0"
},
"packages": {
"jest-preset-angular": {
"version": "~17.0.0",
"alwaysAddToPackageJson": false
}
}
}
}
}