Spaces:
Running
Running
File size: 398 Bytes
03608f2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import "@testing-library/jest-dom/vitest";
import { cleanup } from "@testing-library/react";
import { afterEach } from "vitest";
afterEach(() => cleanup());
// jsdom lacks these; Radix and our components touch them.
class ResizeObserverStub {
observe() {}
unobserve() {}
disconnect() {}
}
globalThis.ResizeObserver ??= ResizeObserverStub as unknown as typeof ResizeObserver;
|