import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' import path from 'node:path' export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, test: { globals: true, environment: 'jsdom', setupFiles: ['./src/setupTests.ts'], css: true, // Our app tests only. Exclude the vendored QClaw/llama.cpp tree, which ships // its own Svelte/e2e tests that this React+jsdom runner can't transform. exclude: ['**/node_modules/**', '**/dist/**', 'Uno-QClaw/**'], }, })