diff --git a/src/components/dialog/tests/dialog.test.tsx b/src/components/dialog/tests/dialog.test.tsx index 4da05a62fb..5536f77179 100644 --- a/src/components/dialog/tests/dialog.test.tsx +++ b/src/components/dialog/tests/dialog.test.tsx @@ -61,8 +61,6 @@ describe('Dialog', () => { }) test('close on mask click', async () => { - jest.useFakeTimers() - const onClose = jest.fn() const afterClose = jest.fn() render( @@ -78,9 +76,6 @@ describe('Dialog', () => { await waitForElementToBeRemoved(mask) expect(onClose).toBeCalled() expect(afterClose).toBeCalled() - - jest.clearAllTimers() - jest.useRealTimers() }) test('custom content', async () => {