From 643ab160490b77e6970a05077d931dcdbb986176 Mon Sep 17 00:00:00 2001 From: Kloen Date: Fri, 14 Jul 2023 01:41:53 +0200 Subject: [PATCH 1/2] fix: move @types/prettier to devDependencies to avoid conflicts with typescript projects using prettier >2.1.5 --- packages/jest-snapshot/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-snapshot/package.json b/packages/jest-snapshot/package.json index 010459dbd2bc..67fd5ea7aaf6 100644 --- a/packages/jest-snapshot/package.json +++ b/packages/jest-snapshot/package.json @@ -25,7 +25,6 @@ "@jest/expect-utils": "workspace:^", "@jest/transform": "workspace:^", "@jest/types": "workspace:^", - "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", "expect": "workspace:^", @@ -47,6 +46,7 @@ "@types/babel__core": "^7.1.14", "@types/graceful-fs": "^4.1.3", "@types/natural-compare": "^1.4.0", + "@types/prettier": "^2.1.5", "@types/semver": "^7.1.0", "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", From fe489dbcbd7b09c5e8914fa68747526f7e914690 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 14 Jul 2023 14:33:07 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ca0115e5011..11dc46e40e58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Fixes +- `[jest-snapshot]` Move `@types/prettier` from `dependencies` to `devDependencies` ([#14328](https://github.com/jestjs/jest/pull/14328)) + ### Chore & Maintenance ### Performance