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 = {};