Spaces:
Sleeping
Sleeping
Download apps/dsa-web/src/setupTests.ts from derrickliu/stock_analysis: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/apps/dsa-web/src/setupTests.ts
- Command line
-
hf download hf://spaces/derrickliu/stock_analysis/apps/dsa-web/src/setupTests.ts
-
curl -L -o setupTests.ts https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/apps/dsa-web/src/setupTests.ts
423 Bytes
| import '@testing-library/jest-dom'; | |
| class IntersectionObserverMock implements IntersectionObserver { | |
| readonly root = null; | |
| readonly rootMargin = ''; | |
| readonly thresholds = [0]; | |
| disconnect() {} | |
| observe() {} | |
| takeRecords(): IntersectionObserverEntry[] { | |
| return []; | |
| } | |
| unobserve() {} | |
| } | |
| Object.defineProperty(globalThis, 'IntersectionObserver', { | |
| writable: true, | |
| value: IntersectionObserverMock, | |
| }); | |