From 3cfb2bddc4c825d3c781b0008b7f0926511ee530 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 9 Jul 2026 10:57:29 +0200 Subject: [PATCH] Fix HelloWorld Jest preset after react-native/jest-preset removal The react-native/jest-preset.js redirect was removed in #57481, but private/helloworld still referenced 'preset: react-native' in its Jest config, breaking 'yarn test' in the test_ios_helloworld CI job with: Validation Error: Module react-native should have jest-preset.js ... Migrate HelloWorld to the standalone @react-native/jest-preset package, matching the documented migration path. --- private/helloworld/jest.config.js | 2 +- private/helloworld/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/private/helloworld/jest.config.js b/private/helloworld/jest.config.js index 26ef92b73cee..3b10bdf375da 100644 --- a/private/helloworld/jest.config.js +++ b/private/helloworld/jest.config.js @@ -9,5 +9,5 @@ */ module.exports = { - preset: 'react-native', + preset: '@react-native/jest-preset', }; diff --git a/private/helloworld/package.json b/private/helloworld/package.json index 63cdc897f1ee..d75b1f9e56ae 100644 --- a/private/helloworld/package.json +++ b/private/helloworld/package.json @@ -22,6 +22,7 @@ "@react-native/babel-preset": "0.87.0-main", "@react-native/core-cli-utils": "*", "@react-native/eslint-config": "0.87.0-main", + "@react-native/jest-preset": "0.87.0-main", "@react-native/metro-config": "0.87.0-main", "@react-native/typescript-config": "0.87.0-main", "@types/jest": "^29.5.14",