mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
f094990450
commit
84866617de
@@ -30,6 +30,11 @@ jest.mock('../LogBoxInspectorHeader', () => ({
|
||||
__esModule: true,
|
||||
default: 'LogBoxInspectorHeader',
|
||||
}));
|
||||
jest.mock('../../Data/LogBoxData', () => ({
|
||||
__esModule: true,
|
||||
symbolicateLogLazy: () => {},
|
||||
symbolicateLogNow: () => {},
|
||||
}));
|
||||
|
||||
const logs = [
|
||||
new LogBoxLog({
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user