diff --git a/packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js b/packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js index 957d5f37c70f2..a46161a684b9c 100644 --- a/packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js +++ b/packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js @@ -7,7 +7,7 @@ let ReactFeatureFlags; let Random; const SEED = process.env.FUZZ_TEST_SEED || 'default'; -const prettyFormatPkg = require('pretty-format'); +const prettyFormatPkg = require('pretty-format').default; function prettyFormat(thing) { return prettyFormatPkg(thing, { diff --git a/packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js b/packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js index a193e37390220..c39b5b9be5ddf 100644 --- a/packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js +++ b/packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js @@ -14,7 +14,7 @@ const ReactFeatureFlags = require('shared/ReactFeatureFlags'); ReactFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback = false; const React = require('react'); const ReactTestRenderer = require('react-test-renderer'); -const prettyFormat = require('pretty-format'); +const prettyFormat = require('pretty-format').default; // Isolate noop renderer jest.resetModules();