feat: more cleanup work in UI

This commit is contained in:
2026-02-10 15:24:36 +01:00
parent 46970de656
commit 0a6710b684
22 changed files with 1945 additions and 461 deletions

View File

@@ -1,20 +1,28 @@
import { defineConfig } from 'vitest/config';
import path from 'path';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts', 'tests/**/*.test.ts'],
// Use jsdom for React component tests, node for main process tests
environment: 'jsdom',
environmentMatchGlobs: [
// Use node environment for main process engine tests
['tests/engine/**', 'node'],
],
include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'tests/**/*.test.ts', 'tests/**/*.test.tsx'],
exclude: ['node_modules', 'dist'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/main/**/*.ts'],
include: ['src/main/**/*.ts', 'src/renderer/**/*.ts', 'src/renderer/**/*.tsx'],
exclude: [
'src/main/main.ts',
'src/main/preload.ts',
'src/**/*.test.ts',
'src/**/*.test.tsx',
],
},
setupFiles: ['./tests/setup.ts'],