(overrideFlags)
| 466 | } |
| 467 | |
| 468 | export 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 | |
| 478 | export function normalizeCodeLocInfo(str) { |
| 479 | if (typeof str === 'object' && str !== null) { |