MCPcopy
hub / github.com/react/react / overrideFeatureFlags

Function overrideFeatureFlags

packages/react-devtools-shared/src/__tests__/utils.js:468–476  ·  view source on GitHub ↗
(overrideFlags)

Source from the content-addressed store, hash-verified

466}
467
468export function overrideFeatureFlags(overrideFlags) {
469 jest.mock('react-devtools-feature-flags', () => {
470 const actualFlags = jest.requireActual('react-devtools-feature-flags');
471 return {
472 ...actualFlags,
473 ...overrideFlags,
474 };
475 });
476}
477
478export function normalizeCodeLocInfo(str) {
479 if (typeof str === 'object' && str !== null) {

Callers

nothing calls this directly

Calls 1

mockMethod · 0.80

Tested by

no test coverage detected