From 9f604dbd437e6fe4c65737ffd672bb3d05db7c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 21 Nov 2024 03:58:36 -0800 Subject: [PATCH] Watch changes in C++ files (#47871) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47871 Changelog: [internal] No need to keep going back to save test files when we change C++ files and need to re-run tests :) Reviewed By: javache Differential Revision: D66293212 fbshipit-source-id: dc232e1d3f7f8ae1578e894ce14bd21ccf3c8ade --- jest/integration/config/jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest/integration/config/jest.config.js b/jest/integration/config/jest.config.js index 1252b6d6196..b00053063fe 100644 --- a/jest/integration/config/jest.config.js +++ b/jest/integration/config/jest.config.js @@ -18,6 +18,7 @@ module.exports = { '/packages/react-native', '/jest/integration/runtime', ], + moduleFileExtensions: [...baseConfig.moduleFileExtensions, 'cpp', 'h'], // This allows running Meta-internal tests with the `-test.fb.js` suffix. testRegex: '/__tests__/.*-itest(\\.fb)?\\.js$', testPathIgnorePatterns: baseConfig.testPathIgnorePatterns,