Skip to content

Commit

Permalink
feat: Refer to specific versions of Jest monorepo dependencies instea…
Browse files Browse the repository at this point in the history
…d of range (#14553)
  • Loading branch information
SimenB authored Sep 20, 2023
1 parent f38c05c commit d6baacf
Show file tree
Hide file tree
Showing 63 changed files with 618 additions and 617 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

- `[*]` [**BREAKING**] Drop support for Node.js versions 14 and 19 ([#14460](https://github.com/jestjs/jest/pull/14460))
- `[*]` [**BREAKING**] Drop support for `[email protected]`, minimum version is now `5.0` ([#14542](https://github.com/facebook/jest/pull/14542))
- `[*]` Depend on exact versions of monorepo dependencies instead of `^` range ([#14553](https://github.com/facebook/jest/pull/14553))
- `[babel-jest, babel-preset-jest]` [**BREAKING**] Increase peer dependency of `@babel/core` to `^7.11` ([#14109](https://github.com/jestjs/jest/pull/14109))
- `[jest-cli, jest-config, @jest/types]` [**BREAKING**] Remove deprecated `--init` argument ([#14490](https://github.com/jestjs/jest/pull/14490))

Expand Down
8 changes: 4 additions & 4 deletions examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"@babel/plugin-proposal-decorators": "*",
"@babel/preset-env": "^7.1.0",
"@babel/preset-typescript": "^7.0.0",
"@jest/globals": "workspace:^",
"babel-jest": "workspace:^",
"@jest/globals": "workspace:*",
"babel-jest": "workspace:*",
"babel-plugin-transform-typescript-metadata": "*",
"jest": "workspace:^",
"jest-environment-jsdom": "workspace:^",
"jest": "workspace:*",
"jest-environment-jsdom": "workspace:*",
"jest-zone-patch": "*"
}
}
4 changes: 2 additions & 2 deletions examples/async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
4 changes: 2 additions & 2 deletions examples/automatic-mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
8 changes: 4 additions & 4 deletions examples/expect-extend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"@babel/preset-typescript": "^7.0.0",
"@jest/globals": "workspace:^",
"babel-jest": "workspace:^",
"expect": "workspace:^",
"jest": "workspace:^",
"@jest/globals": "workspace:*",
"babel-jest": "workspace:*",
"expect": "workspace:*",
"jest": "workspace:*",
"typescript": "^5.0.4"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions examples/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
6 changes: 3 additions & 3 deletions examples/jquery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"jest-environment-jsdom": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-jsdom": "workspace:*"
},
"dependencies": {
"jquery": "^3.2.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/manual-mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
4 changes: 2 additions & 2 deletions examples/module-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
4 changes: 2 additions & 2 deletions examples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"react-test-renderer": "18.2.0"
}
}
6 changes: 3 additions & 3 deletions examples/react-testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.12.1",
"@testing-library/react": "^14.0.0",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"jest-environment-jsdom": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-jsdom": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
6 changes: 3 additions & 3 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.12.1",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"jest-environment-jsdom": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-jsdom": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
4 changes: 2 additions & 2 deletions examples/snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.12.1",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"react-test-renderer": "18.2.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions examples/timer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
"jest": "workspace:^"
"babel-jest": "workspace:*",
"jest": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
8 changes: 4 additions & 4 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.12.1",
"@babel/preset-typescript": "^7.0.0",
"@jest/globals": "workspace:^",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"jest-environment-jsdom": "workspace:^"
"@jest/globals": "workspace:*",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-jsdom": "workspace:*"
},
"scripts": {
"test": "jest"
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@babel/preset-typescript": "^7.0.0",
"@babel/register": "^7.0.0",
"@crowdin/cli": "^3.5.2",
"@jest/globals": "workspace:^",
"@jest/test-utils": "workspace:^",
"@jest/globals": "workspace:*",
"@jest/test-utils": "workspace:*",
"@lerna-lite/cli": "1.13.0",
"@microsoft/api-extractor": "^7.35.0",
"@tsconfig/node16": "^16.1.0",
Expand All @@ -25,7 +25,7 @@
"@typescript-eslint/parser": "^6.6.0",
"ansi-regex": "^5.0.1",
"ansi-styles": "^5.0.0",
"babel-jest": "workspace:^",
"babel-jest": "workspace:*",
"babel-loader": "^8.2.3",
"camelcase": "^6.2.0",
"chalk": "^4.0.0",
Expand All @@ -50,15 +50,15 @@
"istanbul-lib-coverage": "^3.0.0",
"istanbul-lib-report": "^3.0.0",
"istanbul-reports": "^3.1.3",
"jest": "workspace:^",
"jest-changed-files": "workspace:^",
"jest": "workspace:*",
"jest-changed-files": "workspace:*",
"jest-junit": "^16.0.0",
"jest-mock": "workspace:^",
"jest-mock": "workspace:*",
"jest-runner-tsd": "^6.0.0",
"jest-serializer-ansi-escapes": "^2.0.1",
"jest-silent-reporter": "^0.5.0",
"jest-snapshot": "workspace:^",
"jest-util": "workspace:^",
"jest-snapshot": "workspace:*",
"jest-util": "workspace:*",
"jest-watch-typeahead": "^2.2.0",
"jquery": "^3.2.1",
"js-yaml": "^4.1.0",
Expand Down Expand Up @@ -178,9 +178,9 @@
"@types/node": "~16.18.0",
"@types/react": "^18.2.21",
"ansi-escapes/type-fest": "^2.0.0",
"babel-jest": "workspace:^",
"jest": "workspace:^",
"jest-environment-node": "workspace:^",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-node": "workspace:*",
"psl": "patch:psl@npm:^1.9.0#./.yarn/patches/psl-npm-1.9.0-a546edad1a.patch",
"ts-node@^10.5.0": "patch:ts-node@npm:^10.5.0#./.yarn/patches/ts-node-npm-10.9.1-6c268be7f4.patch"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"./package.json": "./package.json"
},
"dependencies": {
"@jest/transform": "workspace:^",
"@jest/transform": "workspace:*",
"@types/babel__core": "^7.1.14",
"babel-plugin-istanbul": "^6.1.1",
"babel-preset-jest": "workspace:^",
"babel-preset-jest": "workspace:*",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.9",
"slash": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@jest/test-utils": "workspace:^",
"@jest/test-utils": "workspace:*",
"@types/graceful-fs": "^4.1.3"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"babel-plugin-jest-hoist": "workspace:^",
"babel-plugin-jest-hoist": "workspace:*",
"babel-preset-current-node-syntax": "^1.0.0"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/create-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"./bin/create-jest": "./bin/create-jest.js"
},
"dependencies": {
"@jest/types": "workspace:^",
"@jest/types": "workspace:*",
"chalk": "^4.0.0",
"exit": "^0.1.2",
"graceful-fs": "^4.2.9",
"jest-config": "workspace:^",
"jest-util": "workspace:^",
"jest-config": "workspace:*",
"jest-util": "workspace:*",
"prompts": "^2.0.1"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/expect-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"./package.json": "./package.json"
},
"dependencies": {
"jest-get-type": "workspace:^"
"jest-get-type": "workspace:*"
},
"devDependencies": {
"@tsd/typescript": "^5.0.4",
"immutable": "^4.0.0",
"jest-matcher-utils": "workspace:^",
"jest-matcher-utils": "workspace:*",
"tsd-lite": "^0.8.0"
},
"engines": {
Expand Down
12 changes: 6 additions & 6 deletions packages/expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"./build/toThrowMatchers": "./build/toThrowMatchers.js"
},
"dependencies": {
"@jest/expect-utils": "workspace:^",
"jest-get-type": "workspace:^",
"jest-matcher-utils": "workspace:^",
"jest-message-util": "workspace:^",
"jest-util": "workspace:^"
"@jest/expect-utils": "workspace:*",
"jest-get-type": "workspace:*",
"jest-matcher-utils": "workspace:*",
"jest-message-util": "workspace:*",
"jest-util": "workspace:*"
},
"devDependencies": {
"@fast-check/jest": "^1.3.0",
"@jest/test-utils": "workspace:^",
"@jest/test-utils": "workspace:*",
"@tsd/typescript": "^5.0.4",
"chalk": "^4.0.0",
"immutable": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-changed-files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"execa": "^5.0.0",
"jest-util": "workspace:^",
"jest-util": "workspace:*",
"p-limit": "^3.1.0"
},
"engines": {
Expand Down
22 changes: 11 additions & 11 deletions packages/jest-circus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"./runner": "./build/runner.js"
},
"dependencies": {
"@jest/environment": "workspace:^",
"@jest/expect": "workspace:^",
"@jest/test-result": "workspace:^",
"@jest/types": "workspace:^",
"@jest/environment": "workspace:*",
"@jest/expect": "workspace:*",
"@jest/test-result": "workspace:*",
"@jest/types": "workspace:*",
"@types/node": "*",
"chalk": "^4.0.0",
"co": "^4.6.0",
"dedent": "^1.0.0",
"is-generator-fn": "^2.0.0",
"jest-each": "workspace:^",
"jest-matcher-utils": "workspace:^",
"jest-message-util": "workspace:^",
"jest-runtime": "workspace:^",
"jest-snapshot": "workspace:^",
"jest-util": "workspace:^",
"jest-each": "workspace:*",
"jest-matcher-utils": "workspace:*",
"jest-message-util": "workspace:*",
"jest-runtime": "workspace:*",
"jest-snapshot": "workspace:*",
"jest-util": "workspace:*",
"p-limit": "^3.1.0",
"pretty-format": "workspace:^",
"pretty-format": "workspace:*",
"pure-rand": "^6.0.0",
"slash": "^3.0.0",
"stack-utils": "^2.0.3"
Expand Down
12 changes: 6 additions & 6 deletions packages/jest-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"./bin/jest": "./bin/jest.js"
},
"dependencies": {
"@jest/core": "workspace:^",
"@jest/test-result": "workspace:^",
"@jest/types": "workspace:^",
"@jest/core": "workspace:*",
"@jest/test-result": "workspace:*",
"@jest/types": "workspace:*",
"chalk": "^4.0.0",
"exit": "^0.1.2",
"import-local": "^3.0.2",
"jest-config": "workspace:^",
"jest-util": "workspace:^",
"jest-validate": "workspace:^",
"jest-config": "workspace:*",
"jest-util": "workspace:*",
"jest-validate": "workspace:*",
"yargs": "^17.3.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit d6baacf

Please sign in to comment.