Spaces:
Sleeping
Sleeping
Download tests/puterJsApiTests/vite.config.ts from AZILS/puter-deploy: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/tests/puterJsApiTests/vite.config.ts
- Command line
-
hf download hf://spaces/AZILS/puter-deploy/tests/puterJsApiTests/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/tests/puterJsApiTests/vite.config.ts
700 Bytes
| // vite.config.ts - Vite configuration for Puter API tests (TypeScript) | |
| import { defineConfig, loadEnv } from 'vite'; | |
| import { viteStaticCopy } from 'vite-plugin-static-copy'; | |
| export default defineConfig(({ mode }) => ({ | |
| test: { | |
| globals: true, | |
| environment: 'jsdom', | |
| setupFiles: ['./setup.ts'], | |
| coverage: { | |
| reporter: ['text', 'json', 'html'], | |
| exclude: ['setup.ts', 'testUtils.ts'], | |
| }, | |
| env: loadEnv(mode, '', 'PUTER_'), | |
| }, | |
| plugins: [ | |
| viteStaticCopy({ | |
| targets: [ | |
| { src: '../src/puter-js/src/index.js', dest: 'puter-js' }, | |
| ], | |
| }), | |
| ], | |
| })); |