Skip to content

Commit 5a8c793

Browse files
jlukicCopilot
andauthored
Update packages/utils/test/utils.test.js
Co-authored-by: Copilot <[email protected]>
1 parent 43eed86 commit 5a8c793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/test/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ describe('function utilities', () => {
16681668

16691669
it('should handle async functions correctly', async () => {
16701670
const asyncFunc = vi.fn(async (x) => {
1671-
// Use vi.advanceTimersToNextTimer instead of real delay with fake timers
1671+
// Use vi.advanceTimersByTime(100) and vi.runAllTimersAsync() to simulate delay with fake timers
16721672
return x * 2;
16731673
});
16741674
const debounced = debounce(asyncFunc, 100);

0 commit comments

Comments
 (0)