feat: more cleanup work in UI
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user