Fix noisy tests (#950)

This commit is contained in:
Seth Troisi 2025-06-11 13:01:04 -07:00 committed by GitHub
parent e0f4f428fc
commit 5586ad5f8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -16,12 +16,11 @@ import {
describe('useLoadingIndicator', () => {
beforeEach(() => {
vi.useFakeTimers();
vi.clearAllMocks();
});
afterEach(() => {
vi.runOnlyPendingTimers();
vi.useRealTimers(); // Restore real timers after each test
act(() => vi.runOnlyPendingTimers);
});
it('should initialize with default values when Idle', () => {