shlink-web-client/config/test/setupTests.ts
2023-08-15 09:53:28 +02:00

11 lines
277 B
TypeScript

import '@testing-library/jest-dom/vitest';
import { cleanup } from '@testing-library/react';
import { afterEach } from 'vitest';
// Clear all mocks and cleanup DOM after every test
afterEach(() => {
vi.clearAllMocks();
cleanup();
});
(global as any).scrollTo = () => {};