Files
react-native/private/react-native-fantom/src/__tests__/FantomFeatureFlags-itest.js
Tim Yung d6f29c8afd RN: Move {packages => private}/react-native-fantom (#51938)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51938

Moves `packages/react-native-fantom` to `private/react-native-fantom`.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D76368959

fbshipit-source-id: 8d62f792229c10cd108dc849e8629d3174dc72c1
2025-06-11 23:49:51 -07:00

23 lines
691 B
JavaScript

/**
* 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.
*
* @fantom_flags commonTestFlag:true jsOnlyTestFlag:true
* @flow strict-local
* @format
*/
import * as ReactNativeFeatureFlags from 'react-native/src/private/featureflags/ReactNativeFeatureFlags';
describe('FantomFeatureFlags', () => {
it('allows overridding common feature flags', () => {
expect(ReactNativeFeatureFlags.commonTestFlag()).toBe(true);
});
it('allows overridding JS-only feature flags', () => {
expect(ReactNativeFeatureFlags.jsOnlyTestFlag()).toBe(true);
});
});