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

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', () => {