diff --git a/packages/react-native/Libraries/LogBox/__tests__/LogBoxNotificationContainer-test.js b/packages/react-native/Libraries/LogBox/__tests__/LogBoxNotificationContainer-test.js index 65ea3dab0db..11b71404a2d 100644 --- a/packages/react-native/Libraries/LogBox/__tests__/LogBoxNotificationContainer-test.js +++ b/packages/react-native/Libraries/LogBox/__tests__/LogBoxNotificationContainer-test.js @@ -18,9 +18,16 @@ const { } = require('../LogBoxInspectorContainer'); const React = require('react'); +// Mock `LogBoxInspector` because we are interested in snapshotting the behavior +// of `LogBoxNotificationContainer`, not `LogBoxInspector`. +jest.mock('../UI/LogBoxInspector', () => ({ + __esModule: true, + default: 'LogBoxInspector', +})); + describe('LogBoxNotificationContainer', () => { it('should render inspector with logs, even when disabled', () => { - const output = render.shallowRender( + const output = render.create(