Spaces:
Sleeping
Sleeping
Download src/backend/vitest.config.ts from AZILS/puter-deploy: direct link, hf CLI and curl.
- Browser
- Download file 917 Bytes
-
https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/src/backend/vitest.config.ts
- Command line
-
hf download hf://spaces/AZILS/puter-deploy/src/backend/vitest.config.ts
-
curl -L -o vitest.config.ts https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/src/backend/vitest.config.ts
917 Bytes
| // vite.config.ts - Vite configuration for Puter API tests (TypeScript) | |
| import { loadEnv } from 'vite'; | |
| import { defineConfig } from 'vitest/config'; | |
| export default defineConfig(({ mode }) => ({ | |
| test: { | |
| globals: true, | |
| setupFiles: [], | |
| coverage: { | |
| provider: 'v8', | |
| reporter: ['text', 'json', 'json-summary', 'html', 'lcov'], | |
| include: ['src/**/*.{js,mjs,ts,mts}'], | |
| exclude: [ | |
| 'src/**/types/**', | |
| 'src/**/constants/**', | |
| 'src/**/*.d.ts', | |
| 'src/**/*.d.mts', | |
| 'src/**/*.d.cts', | |
| 'src/**/dist/**', | |
| 'src/**/*.min.*', | |
| ], | |
| }, | |
| env: loadEnv(mode, '', 'PUTER_'), | |
| include: ['src/**/*.{test,spec}.{ts,js}'], | |
| root: __dirname, // Ensures paths are relative to backend/ | |
| }, | |
| })); | |