Files
turn-up-arch/ui/vite.config.ts
T
Sean Doran 01d293ebe2 fix: build frontend and fix tsc errors blocking the build
vite.config.ts used defineConfig from 'vite' which doesn't accept the
'test' key — switch to 'vitest/config' which extends it. Also type the
onChange test helper as (knob: KnobConfig) => void instead of the overly
broad ReturnType<typeof vi.fn>. Run npm run build to ship the compiled
static assets.
2026-03-07 23:16:05 -05:00

24 lines
474 B
TypeScript

/// <reference types="vitest" />
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
build: {
outDir: '../src/turnup/ui/static',
emptyOutDir: true,
},
server: {
port: 5174,
proxy: {
'/api': 'http://localhost:5173',
},
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test-setup.ts'],
},
})