Skip to content

Commit 1cb392d

Browse files
MelvinBotikevin127
andcommitted
Type discard-modal test mock without unsafe assertion
Co-authored-by: Kevin Brian Bader <ikevin127@users.noreply.github.com>
1 parent 88c56f5 commit 1cb392d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/ui/IOURequestStepDescriptionTest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jest.mock('@libs/focusComposerWithDelay', () => ({
2828

2929
// The component gates `forceKeyboardIfAlreadyFocused` behind this platform-resolved helper. Mock it so each test
3030
// can drive the platform's value and assert the component forwards it verbatim.
31-
const mockShouldForceKeyboard = jest.fn();
31+
const mockShouldForceKeyboard = jest.fn(() => false);
3232
jest.mock('@libs/shouldForceKeyboardIfAlreadyFocused', () => ({
3333
__esModule: true,
34-
default: () => mockShouldForceKeyboard() as boolean,
34+
default: () => mockShouldForceKeyboard(),
3535
}));
3636

3737
// Capture the `onCancel` the component wires into the discard-changes hook, without dragging in the real

0 commit comments

Comments
 (0)