Skip to content

Commit 2f477b1

Browse files
SimenBfacebook-github-bot
authored andcommitted
fix: update to @jest/create-cache-key-function@27 (#30637)
Summary: API of Jest transformers is changing in Jest 27. The new version of `jest/create-cache-key-function` handles both current versions of the API and the upcoming 27 API. Ref: jestjs/jest#10834 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Changed] - Use version of `jest/create-cache-key-function` compatible with upcoming Jest v27 release Pull Request resolved: #30637 Test Plan: I've tested locally that it works with both a `jest@latest` and `jest@next` release. Reviewed By: yungsters Differential Revision: D28807361 Pulled By: hramos fbshipit-source-id: 9d9ccb4d7f91b30bcbf3d28202bb74ce7499a91b
1 parent 78caaca commit 2f477b1

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"react": "17.0.2"
9090
},
9191
"dependencies": {
92-
"@jest/create-cache-key-function": "^26.5.0",
92+
"@jest/create-cache-key-function": "^27.0.1",
9393
"@react-native-community/cli": "^5.0.1-alpha.0",
9494
"@react-native-community/cli-platform-android": "^5.0.1-alpha.0",
9595
"@react-native-community/cli-platform-ios": "^5.0.1-alpha.0",

yarn.lock

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -827,12 +827,12 @@
827827
slash "^3.0.0"
828828
strip-ansi "^6.0.0"
829829

830-
"@jest/create-cache-key-function@^26.5.0":
831-
version "26.6.2"
832-
resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-26.6.2.tgz#04cf439207a4fd12418d8aee551cddc86f9ac5f5"
833-
integrity sha512-LgEuqU1f/7WEIPYqwLPIvvHuc1sB6gMVbT6zWhin3txYUNYK/kGQrC1F2WR4gR34YlI9bBtViTm5z98RqVZAaw==
830+
"@jest/create-cache-key-function@^27.0.1":
831+
version "27.0.1"
832+
resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-27.0.1.tgz#93f36e543e67a84ef1430e456b750d2271738e90"
833+
integrity sha512-cnJPO3//4BXpydHjo7nuI+L7YUktxwWeRCYlRhk6faNuiZpqLbhGZhNOMo8fOcuf3+80UP5vLqDvwM4XcDLpcA==
834834
dependencies:
835-
"@jest/types" "^26.6.2"
835+
"@jest/types" "^27.0.1"
836836

837837
"@jest/environment@^26.6.2":
838838
version "26.6.2"
@@ -968,6 +968,17 @@
968968
"@types/yargs" "^15.0.0"
969969
chalk "^4.0.0"
970970

971+
"@jest/types@^27.0.1":
972+
version "27.0.1"
973+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.0.1.tgz#631738c942e70045ebbf42a3f9b433036d3845e4"
974+
integrity sha512-8A25RRV4twZutsx2D+7WphnDsp7If9Yu6ko0Gxwrwv8BiWESFzka34+Aa2kC8w9xewt7SDuCUSZ6IiAFVj3PRg==
975+
dependencies:
976+
"@types/istanbul-lib-coverage" "^2.0.0"
977+
"@types/istanbul-reports" "^3.0.0"
978+
"@types/node" "*"
979+
"@types/yargs" "^16.0.0"
980+
chalk "^4.0.0"
981+
971982
"@react-native-community/cli-debugger-ui@^5.0.1-alpha.1":
972983
version "5.0.1-alpha.1"
973984
resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-5.0.1-alpha.1.tgz#09a856ccd2954cf16eea59b14dd26ae66720e4e6"
@@ -1266,6 +1277,13 @@
12661277
dependencies:
12671278
"@types/yargs-parser" "*"
12681279

1280+
"@types/yargs@^16.0.0":
1281+
version "16.0.3"
1282+
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.3.tgz#4b6d35bb8e680510a7dc2308518a80ee1ef27e01"
1283+
integrity sha512-YlFfTGS+zqCgXuXNV26rOIeETOkXnGQXP/pjjL9P0gO/EP9jTmc7pUBhx+jVEIxpq41RX33GQ7N3DzOSfZoglQ==
1284+
dependencies:
1285+
"@types/yargs-parser" "*"
1286+
12691287
abab@^2.0.3:
12701288
version "2.0.3"
12711289
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a"

0 commit comments

Comments
 (0)