diff --git a/Libraries/LogBox/Data/__tests__/LogBoxSymbolication-test.js b/Libraries/LogBox/Data/__tests__/LogBoxSymbolication-test.js index 1d35a1e9867ffd..072be3035cfdf2 100644 --- a/Libraries/LogBox/Data/__tests__/LogBoxSymbolication-test.js +++ b/Libraries/LogBox/Data/__tests__/LogBoxSymbolication-test.js @@ -12,6 +12,7 @@ 'use strict'; import type {StackFrame} from '../../../Core/NativeExceptionsManager'; +import type {SymbolicatedStackTrace} from '../../../Core/Devtools/symbolicateStackTrace'; jest.mock('../../../Core/Devtools/symbolicateStackTrace'); @@ -19,7 +20,7 @@ const LogBoxSymbolication = require('../LogBoxSymbolication'); const symbolicateStackTrace: JestMockFn< $ReadOnlyArray>, - Promise>, + Promise, > = (require('../../../Core/Devtools/symbolicateStackTrace'): any); const createStack = (methodNames: Array) => @@ -33,7 +34,10 @@ const createStack = (methodNames: Array) => describe('LogBoxSymbolication', () => { beforeEach(() => { jest.resetModules(); - symbolicateStackTrace.mockImplementation(async stack => stack); + symbolicateStackTrace.mockImplementation(async stack => ({ + stack, + codeFrame: null, + })); }); it('symbolicates different stacks', () => {