From 4789744164dd98598ee765e7c7a3091b97d9752c Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Wed, 26 Mar 2025 08:02:00 -0700 Subject: [PATCH] chore: add jest-config to monorepo dependencies (#50280) Summary: The React Native monorepo depends on `jest-config` in `jest.config.js` but does not specify it as a dependency. This means we got it as a phantom / transitive dependency. In React Native macOS, I am testing using Yarn 4 with pnpm layout to protect against such dependencies (See https://github.com/microsoft/react-native-macos/pull/2366). The simplest way to fix this is to just declare it as a dependency. ## Changelog: [INTERNAL] [FIXED] - Add jest-config as a dependency Pull Request resolved: https://github.com/facebook/react-native/pull/50280 Test Plan: This change should be a no-op in React Native, we already had the package in our lock. Reviewed By: yungsters, huntie Differential Revision: D71891841 Pulled By: robhogan fbshipit-source-id: 5b4720e9e09e25b2f1eebb80675bfe4f3a48e2dc --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 0ef4ee3331d..fa0be3bcbc5 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "hermes-transform": "0.25.1", "inquirer": "^7.1.0", "jest": "^29.7.0", + "jest-config": "^29.7.0", "jest-diff": "^29.7.0", "jest-junit": "^10.0.0", "jest-snapshot": "^29.7.0",