Wires up all 5 routes in App.tsx (/, /metrics, /routes/:id, /exchanges/:id, /agents). Fixes pre-existing build errors: vite.config.ts now uses vitest/config defineConfig so the test property is typed correctly; removes unused imports in Collapsible.tsx and _chart-utils.ts; removes unused parameter in metrics.ts generateTimeSeries. Build: tsc -b && vite build passes clean. Test suite: 72/72 pass. Bundle: 334kB JS (101kB gzip) + 54kB CSS (10kB gzip). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
379 B
TypeScript
18 lines
379 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
css: {
|
|
modules: {
|
|
localsConvention: 'camelCase',
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: ['./src/test-setup.ts'],
|
|
css: { modules: { classNameStrategy: 'non-scoped' } },
|
|
},
|
|
})
|