LogBoxInspector-test: Mock out symbolication (#44996)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44996

Mock out some LogBoxData symbolication in LogBoxInspector-test that would otherwise make it sensitive to an async `useEffect` when wrapping in `act`.

This is immaterial to the snapshot under test (changing a state from `PENDING` to `NONE`).

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D58651811

fbshipit-source-id: d47100a87d83102bbe183cb7266d66344e75b0b0
This commit is contained in:
Rob Hogan
2024-06-16 16:55:21 -07:00
committed by Facebook GitHub Bot
parent f094990450
commit 84866617de
2 changed files with 6 additions and 1 deletions
@@ -30,6 +30,11 @@ jest.mock('../LogBoxInspectorHeader', () => ({
__esModule: true,
default: 'LogBoxInspectorHeader',
}));
jest.mock('../../Data/LogBoxData', () => ({
__esModule: true,
symbolicateLogLazy: () => {},
symbolicateLogNow: () => {},
}));
const logs = [
new LogBoxLog({
@@ -35,7 +35,7 @@ exports[`LogBoxContainer should render fatal with selectedIndex 2 1`] = `
"symbolicated": Object {
"error": null,
"stack": null,
"status": "PENDING",
"status": "NONE",
},
"symbolicatedComponentStack": Object {
"componentStack": null,