mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-04 12:10:34 -06:00
23 lines
678 B
TypeScript
23 lines
678 B
TypeScript
// 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' },
|
|
],
|
|
}),
|
|
],
|
|
})); |