Skip to content

Commit

Permalink
test(suite): bypass debounce in problematic sendform test
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Feb 14, 2025
1 parent 2c59d0f commit 961319c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/suite/src/hooks/wallet/__tests__/useSendForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,19 @@ describe('useSendForm hook', () => {
`changeFee: ${f.description}`,
async () => {
testMocks.setTrezorConnectFixtures(f.connect);

jest.mock('@trezor/react-utils', () => {
const originalModule = jest.requireActual('@trezor/react-utils');

return {
__esModule: true,
...originalModule,
useDebounce: () => async (fn: any) => {
await fn();
},
};
});

const store = initStore(f.store);
const callback: TestCallback = {};
const { unmount } = renderWithProviders(
Expand Down

0 comments on commit 961319c

Please sign in to comment.