From 510dd2e27b06152bcf7f5b5d952d806c43ab0d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferr=C3=A3o?= Date: Thu, 16 Jul 2026 00:59:36 +0100 Subject: [PATCH 1/3] chore(SDK-121): align Jest 29 deps and remove jest-native Pin babel-jest and jest-environment-node to 29.7.0, drop deprecated @testing-library/jest-native, and update @types/jest to ^29.5.14. Co-authored-by: Cursor --- jest.config.js | 3 --- package.json | 7 ++++--- yarn.lock | 32 +++++++------------------------- 3 files changed, 11 insertions(+), 31 deletions(-) diff --git a/jest.config.js b/jest.config.js index b8b005063..a83b3e8af 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,9 +1,6 @@ module.exports = { preset: '@react-native/jest-preset', setupFiles: ['/src/__mocks__/jest.setup.ts'], - setupFilesAfterEnv: [ - '/node_modules/@testing-library/jest-native/extend-expect', - ], testMatch: ['/src/**/*.(test|spec).[jt]s?(x)'], transformIgnorePatterns: [ 'node_modules/(?!(react-native|@react-native|@react-navigation|react-native-screens|react-native-safe-area-context|react-native-gesture-handler|react-native-webview)/)', diff --git a/package.json b/package.json index 3caa524d3..a594baf0f 100644 --- a/package.json +++ b/package.json @@ -78,9 +78,8 @@ "@react-native/typescript-config": "0.85.3", "@react-navigation/native": "^7.1.14", "@release-it/conventional-changelog": "^9.0.4", - "@testing-library/jest-native": "^5.4.3", "@testing-library/react-native": "^13.3.3", - "@types/jest": "^29.5.5", + "@types/jest": "^29.5.14", "@types/react": "^19.2.0", "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", @@ -111,7 +110,9 @@ "typescript": "^5.8.3" }, "resolutions": { - "@types/react": "^19.2.0" + "@types/react": "^19.2.0", + "babel-jest": "29.7.0", + "jest-environment-node": "29.7.0" }, "peerDependencies": { "@react-navigation/native": "*", diff --git a/yarn.lock b/yarn.lock index 08bd3f70e..aca17a611 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2160,9 +2160,8 @@ __metadata: "@react-native/typescript-config": 0.85.3 "@react-navigation/native": ^7.1.14 "@release-it/conventional-changelog": ^9.0.4 - "@testing-library/jest-native": ^5.4.3 "@testing-library/react-native": ^13.3.3 - "@types/jest": ^29.5.5 + "@types/jest": ^29.5.14 "@types/react": ^19.2.0 "@typescript-eslint/eslint-plugin": ^8.13.0 "@typescript-eslint/parser": ^8.13.0 @@ -3427,23 +3426,6 @@ __metadata: languageName: node linkType: hard -"@testing-library/jest-native@npm:^5.4.3": - version: 5.4.3 - resolution: "@testing-library/jest-native@npm:5.4.3" - dependencies: - chalk: ^4.1.2 - jest-diff: ^29.0.1 - jest-matcher-utils: ^29.0.1 - pretty-format: ^29.0.3 - redent: ^3.0.0 - peerDependencies: - react: ">=16.0.0" - react-native: ">=0.59" - react-test-renderer: ">=16.0.0" - checksum: 2a4ebfeff09523860771cfddac6fcc3faa2f855dc63255b9efc016e727132320f16f935cec9717d6d79cfa6715fce6ded877215c8ec85d236a5c3136a65b1020 - languageName: node - linkType: hard - "@testing-library/react-native@npm:^13.3.3": version: 13.3.3 resolution: "@testing-library/react-native@npm:13.3.3" @@ -3571,7 +3553,7 @@ __metadata: languageName: node linkType: hard -"@types/jest@npm:^29.5.13, @types/jest@npm:^29.5.5": +"@types/jest@npm:^29.5.13, @types/jest@npm:^29.5.14": version: 29.5.14 resolution: "@types/jest@npm:29.5.14" dependencies: @@ -4477,7 +4459,7 @@ __metadata: languageName: node linkType: hard -"babel-jest@npm:^29.7.0": +"babel-jest@npm:29.7.0": version: 29.7.0 resolution: "babel-jest@npm:29.7.0" dependencies: @@ -8721,7 +8703,7 @@ __metadata: languageName: node linkType: hard -"jest-diff@npm:^29.0.1, jest-diff@npm:^29.7.0": +"jest-diff@npm:^29.7.0": version: 29.7.0 resolution: "jest-diff@npm:29.7.0" dependencies: @@ -8755,7 +8737,7 @@ __metadata: languageName: node linkType: hard -"jest-environment-node@npm:^29.7.0": +"jest-environment-node@npm:29.7.0": version: 29.7.0 resolution: "jest-environment-node@npm:29.7.0" dependencies: @@ -8809,7 +8791,7 @@ __metadata: languageName: node linkType: hard -"jest-matcher-utils@npm:^29.0.1, jest-matcher-utils@npm:^29.7.0": +"jest-matcher-utils@npm:^29.7.0": version: 29.7.0 resolution: "jest-matcher-utils@npm:29.7.0" dependencies: @@ -11315,7 +11297,7 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.0.0, pretty-format@npm:^29.0.3, pretty-format@npm:^29.7.0": +"pretty-format@npm:^29.0.0, pretty-format@npm:^29.7.0": version: 29.7.0 resolution: "pretty-format@npm:29.7.0" dependencies: From 6d7faa84cc907e7f2ba5a0b69187189b9c334fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferr=C3=A3o?= Date: Fri, 17 Jul 2026 11:48:57 +0100 Subject: [PATCH 2/3] chore(SDK-121): zero-impact change to .gitignore for circular dependency lefthook test --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index de804bf93..a903b379d 100644 --- a/.gitignore +++ b/.gitignore @@ -96,8 +96,8 @@ docs/ .metals/ # Agents -.agent/ .claude/ +.agent/ .cursor/ .opencode/ .pi/ From 4afe7b556c496ab4b6b44d928bfe2c3c2111906c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferr=C3=A3o?= Date: Fri, 17 Jul 2026 11:50:10 +0100 Subject: [PATCH 3/3] chore(SDK-121): revert zero-impact change to .gitignore for circular dependency lefthook test --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a903b379d..de804bf93 100644 --- a/.gitignore +++ b/.gitignore @@ -96,8 +96,8 @@ docs/ .metals/ # Agents -.claude/ .agent/ +.claude/ .cursor/ .opencode/ .pi/