Fix noisy tests (#950)
This commit is contained in:
parent
e0f4f428fc
commit
5586ad5f8a
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue