Spaces:
Runtime error
Runtime error
Download scribe/frontend/src/setupTests.ts from tranth3truong/carepath-api: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/tranth3truong/carepath-api/resolve/main/scribe/frontend/src/setupTests.ts
- Command line
-
hf download hf://spaces/tranth3truong/carepath-api/scribe/frontend/src/setupTests.ts
-
curl -L -o setupTests.ts https://huggingface.co/spaces/tranth3truong/carepath-api/resolve/main/scribe/frontend/src/setupTests.ts
607 Bytes
| import "@testing-library/jest-dom/vitest"; | |
| import { cleanup } from "@testing-library/react"; | |
| import { afterEach } from "vitest"; | |
| afterEach(cleanup); | |
| Object.defineProperty(window, "matchMedia", { | |
| writable: true, | |
| value: (query: string): MediaQueryList => ({ | |
| matches: false, | |
| media: query, | |
| onchange: null, | |
| addListener: () => undefined, | |
| removeListener: () => undefined, | |
| addEventListener: () => undefined, | |
| removeEventListener: () => undefined, | |
| dispatchEvent: () => false, | |
| }), | |
| }); | |
| Object.defineProperty(window, "scrollTo", { | |
| writable: true, | |
| value: () => undefined, | |
| }); | |