We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43eed86 commit 5a8c793Copy full SHA for 5a8c793
packages/utils/test/utils.test.js
@@ -1668,7 +1668,7 @@ describe('function utilities', () => {
1668
1669
it('should handle async functions correctly', async () => {
1670
const asyncFunc = vi.fn(async (x) => {
1671
- // Use vi.advanceTimersToNextTimer instead of real delay with fake timers
+ // Use vi.advanceTimersByTime(100) and vi.runAllTimersAsync() to simulate delay with fake timers
1672
return x * 2;
1673
});
1674
const debounced = debounce(asyncFunc, 100);
0 commit comments