All checks were successful
continuous-integration/drone/push Build is passing
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
// Required by React to silence act(...) warnings in jsdom tests.
|
|
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
|
|
|
|
import '@testing-library/jest-dom/vitest';
|
|
import { cleanup } from '@testing-library/react';
|
|
import { afterEach, vi } from 'vitest';
|
|
|
|
afterEach(() => {
|
|
cleanup();
|
|
localStorage.clear();
|
|
document.body.className = '';
|
|
document.body.style.overflow = '';
|
|
vi.restoreAllMocks();
|
|
vi.useRealTimers();
|
|
});
|