From 4290ef5d0d30d33e9bf26eb33d8bda86de0dd1ce Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Wed, 8 May 2024 07:14:05 -0700 Subject: [PATCH] RN: Cleanup `ReactNativeInternalFeatureFlagsMock` (#44445) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44445 The `ReactNativeInternalFeatureFlagsMock` module is not references in the open source repository, so there's no reason it should exist there. This cleans that up. Changelog: [Internal] Reviewed By: kassens Differential Revision: D57052284 fbshipit-source-id: d220eae2ba76f20ed48742779fbffd5de1f77529 --- jest.config.js | 6 ------ .../jest/ReactNativeInternalFeatureFlagsMock.js | 13 ------------- 2 files changed, 19 deletions(-) delete mode 100644 packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js diff --git a/jest.config.js b/jest.config.js index eb43b0845ad..933d17ec515 100644 --- a/jest.config.js +++ b/jest.config.js @@ -41,12 +41,6 @@ module.exports = { defaultPlatform: 'ios', platforms: ['ios', 'android'], }, - moduleNameMapper: { - // This module is internal to Meta and used by their custom React renderer. - // In tests, we can just use a mock. - '^ReactNativeInternalFeatureFlags$': - '/packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js', - }, moduleFileExtensions: ['fb.js'].concat(defaults.moduleFileExtensions), modulePathIgnorePatterns: ['scripts/.*/__fixtures__/'], unmockedModulePathPatterns: [ diff --git a/packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js b/packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js deleted file mode 100644 index 41a9969a4f1..00000000000 --- a/packages/react-native/jest/ReactNativeInternalFeatureFlagsMock.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @flow strict - */ - -'use strict'; - -module.exports = {};