From 8d1293769dc811d90d8335ecbc6c49d9497ae609 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 27 May 2021 11:14:19 +0200 Subject: [PATCH] Fix pretty-format breakage --- .../src/__tests__/ReactSuspenseFuzz-test.internal.js | 2 +- .../src/__tests__/ReactTestRenderer-test.internal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();