From 8c0541cb128f5523b91cfd8a167cb1914dbff5e7 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sun, 16 Jun 2024 12:15:49 -0700 Subject: [PATCH] RN: Migrate `LogBoxInspectorSection-test.js` from Shallow Renderer (#44983) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44983 Migrates this Jest unit test away from using `react-shallow-renderer` because it is no longer recommended. Changelog: [Internal] Reviewed By: robhogan Differential Revision: D58643056 fbshipit-source-id: 61494765f68f1810b19a33f5e2a6c5d4087ce11c --- .../LogBox/UI/__tests__/LogBoxInspectorSection-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js b/packages/react-native/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js index 0302f35acfc..0f7a8361870 100644 --- a/packages/react-native/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js +++ b/packages/react-native/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js @@ -17,7 +17,7 @@ const React = require('react'); describe('LogBoxInspectorSection', () => { it('should render with only heading', () => { - const output = render.shallowRender( + const output = render.create( Child , @@ -27,7 +27,7 @@ describe('LogBoxInspectorSection', () => { }); it('should render with action on the right', () => { - const output = render.shallowRender( + const output = render.create( Right}>