soulsync/webui/vitest.config.ts
Antti Kettunen ce1fb16b76
Split webui tooling into separate configs
- Move Vite, Vitest, Oxfmt, and Oxlint into standalone config files
- Replace vite-plus scripts and test imports with direct tools
- Keep the generated route tree out of formatter and linter checks
2026-05-13 22:26:25 +03:00

18 lines
449 B
TypeScript

import { mergeConfig, defineConfig } from 'vitest/config';
import viteConfig from './vite.config';
export default mergeConfig(
viteConfig,
defineConfig({
test: {
include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'src/**/*.spec.ts', 'src/**/*.spec.tsx'],
exclude: ['tests/**'],
environment: 'jsdom',
globals: true,
setupFiles: ['./vitest.setup.ts'],
css: true,
restoreMocks: true,
},
}),
);