Spaces:
Running
Running
Download web/src/test/setup.ts from Aynkhn/WorkPilot-AI: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/test/setup.ts
- Command line
-
hf download hf://spaces/Aynkhn/WorkPilot-AI/web/src/test/setup.ts
-
curl -L -o setup.ts https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/test/setup.ts
398 Bytes
| 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; | |