From bb7c6ba88177b88cadf1c2b8f9d8524f6427fad7 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Sat, 6 Apr 2024 04:16:08 +0800 Subject: [PATCH 1/2] move --- CHANGELOG.md | 1 + packages/babel-plugin-jest-hoist/package.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43151a60b70d..a9b2aaf9ca24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,7 @@ - `[docs]` Fix typos in `CHANGELOG.md` and `packages/jest-validate/README.md` ([#14640](https://github.com/jestjs/jest/pull/14640)) - `[docs]` Don't use alias matchers in docs ([#14631](https://github.com/jestjs/jest/pull/14631)) - `[babel-jest, babel-preset-jest]` [**BREAKING**] Increase peer dependency of `@babel/core` to `^7.11` ([#14109](https://github.com/jestjs/jest/pull/14109)) +- `[babel-plugin-jest-hoist]` Move unnecessary `dependencies` to `devDependencies` ([#15010](https://github.com/jestjs/jest/pull/15010)) - `[expect]` [**BREAKING**] Remove `.toBeCalled()`, `.toBeCalledTimes()`, `.toBeCalledWith()`, `.lastCalledWith()`, `.nthCalledWith()`, `.toReturn()`, `.toReturnTimes()`, `.toReturnWith()`, `.lastReturnedWith()`, `.nthReturnedWith()` and `.toThrowError()` matcher aliases ([#14632](https://github.com/jestjs/jest/pull/14632)) - `[jest-cli, jest-config, @jest/types]` [**BREAKING**] Remove deprecated `--init` argument ([#14490](https://github.com/jestjs/jest/pull/14490)) - `[jest-config, @jest/core, jest-util]` Upgrade `ci-info` ([#14655](https://github.com/jestjs/jest/pull/14655)) diff --git a/packages/babel-plugin-jest-hoist/package.json b/packages/babel-plugin-jest-hoist/package.json index c27cd6e22c9b..f7eebb633543 100644 --- a/packages/babel-plugin-jest-hoist/package.json +++ b/packages/babel-plugin-jest-hoist/package.json @@ -23,16 +23,16 @@ }, "dependencies": { "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" + "@babel/types": "^7.3.3" }, "devDependencies": { "@babel/core": "^7.11.6", "@babel/preset-react": "^7.12.1", "@babel/preset-typescript": "^7.0.0", "@prettier/sync": "^0.5.0", + "@types/babel__core": "^7.1.14", "@types/babel__template": "^7.0.2", + "@types/babel__traverse": "^7.0.6", "@types/node": "*", "@types/prettier": "^3.0.0", "babel-plugin-tester": "^11.0.2", From 5ad03a6960b7f4ac79c898a0f5f55745b13b0f15 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Sat, 6 Apr 2024 04:22:16 +0800 Subject: [PATCH 2/2] babel-jest --- CHANGELOG.md | 2 +- packages/babel-jest/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9b2aaf9ca24..a37c0c07c158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,7 +76,7 @@ - `[docs]` Fix typos in `CHANGELOG.md` and `packages/jest-validate/README.md` ([#14640](https://github.com/jestjs/jest/pull/14640)) - `[docs]` Don't use alias matchers in docs ([#14631](https://github.com/jestjs/jest/pull/14631)) - `[babel-jest, babel-preset-jest]` [**BREAKING**] Increase peer dependency of `@babel/core` to `^7.11` ([#14109](https://github.com/jestjs/jest/pull/14109)) -- `[babel-plugin-jest-hoist]` Move unnecessary `dependencies` to `devDependencies` ([#15010](https://github.com/jestjs/jest/pull/15010)) +- `[babel-jest, babel-plugin-jest-hoist]` Move unnecessary `dependencies` to `devDependencies` ([#15010](https://github.com/jestjs/jest/pull/15010)) - `[expect]` [**BREAKING**] Remove `.toBeCalled()`, `.toBeCalledTimes()`, `.toBeCalledWith()`, `.lastCalledWith()`, `.nthCalledWith()`, `.toReturn()`, `.toReturnTimes()`, `.toReturnWith()`, `.lastReturnedWith()`, `.nthReturnedWith()` and `.toThrowError()` matcher aliases ([#14632](https://github.com/jestjs/jest/pull/14632)) - `[jest-cli, jest-config, @jest/types]` [**BREAKING**] Remove deprecated `--init` argument ([#14490](https://github.com/jestjs/jest/pull/14490)) - `[jest-config, @jest/core, jest-util]` Upgrade `ci-info` ([#14655](https://github.com/jestjs/jest/pull/14655)) diff --git a/packages/babel-jest/package.json b/packages/babel-jest/package.json index 86794bb277ec..10a6e9dc61a1 100644 --- a/packages/babel-jest/package.json +++ b/packages/babel-jest/package.json @@ -21,7 +21,6 @@ }, "dependencies": { "@jest/transform": "workspace:*", - "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", "babel-preset-jest": "workspace:*", "chalk": "^4.0.0", @@ -31,6 +30,7 @@ "devDependencies": { "@babel/core": "^7.11.6", "@jest/test-utils": "workspace:*", + "@types/babel__core": "^7.1.14", "@types/graceful-fs": "^4.1.3" }, "peerDependencies": {