Skip to content

Commit

Permalink
[COMMUNITY] Fixing broken jest mock of the debounce utils method
Browse files Browse the repository at this point in the history
  • Loading branch information
cagonzalezcs committed Jan 16, 2025
1 parent ff54bb4 commit b13c97c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jest.mock("../utils", () => {
const utils = jest.requireActual("../utils");
return {
...utils,
debounce: jest.fn((fn) => fn),
debounce: jest.fn((fn, wait) => setTimeout(() => fn(), wait)),
};
});

Expand Down

0 comments on commit b13c97c

Please sign in to comment.