Spaces:
Paused
Paused
Download src/__tests__/setup.ts from Rachit-Tw/PRIX: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/Rachit-Tw/PRIX/resolve/main/src/__tests__/setup.ts
- Command line
-
hf download hf://spaces/Rachit-Tw/PRIX/src/__tests__/setup.ts
-
curl -L -o setup.ts https://huggingface.co/spaces/Rachit-Tw/PRIX/resolve/main/src/__tests__/setup.ts
363 Bytes
| // Jest setup file | |
| import { jest } from '@jest/globals' | |
| // Mock environment variables | |
| process.env.GROQ_API_KEY = 'test-api-key' | |
| process.env.GITHUB_TOKEN = 'test-github-token' | |
| process.env.LOG_LEVEL = 'silent' | |
| // Global test utilities | |
| global.console = { | |
| ...console, | |
| log: jest.fn(), | |
| warn: jest.fn(), | |
| error: jest.fn(), | |
| debug: jest.fn(), | |
| } | |