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
This commit is contained in:
Tim Yung
2024-06-16 12:15:49 -07:00
committed by Facebook GitHub Bot
parent a83d8d1590
commit 8c0541cb12
@@ -17,7 +17,7 @@ const React = require('react');
describe('LogBoxInspectorSection', () => {
it('should render with only heading', () => {
const output = render.shallowRender(
const output = render.create(
<LogBoxInspectorSection heading="Test Section">
<Text>Child</Text>
</LogBoxInspectorSection>,
@@ -27,7 +27,7 @@ describe('LogBoxInspectorSection', () => {
});
it('should render with action on the right', () => {
const output = render.shallowRender(
const output = render.create(
<LogBoxInspectorSection
heading="Test Section"
action={<Text>Right</Text>}>