Fix noisy tests (#950)
This commit is contained in:
parent
e0f4f428fc
commit
5586ad5f8a
|
@ -16,12 +16,11 @@ import {
|
||||||
describe('useLoadingIndicator', () => {
|
describe('useLoadingIndicator', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
vi.useFakeTimers();
|
vi.useFakeTimers();
|
||||||
vi.clearAllMocks();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
vi.runOnlyPendingTimers();
|
|
||||||
vi.useRealTimers(); // Restore real timers after each test
|
vi.useRealTimers(); // Restore real timers after each test
|
||||||
|
act(() => vi.runOnlyPendingTimers);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should initialize with default values when Idle', () => {
|
it('should initialize with default values when Idle', () => {
|
||||||
|
|
Loading…
Reference in New Issue