- Add recharts library for data visualization - Implement ReportAnalyzer service to parse report data - Add report analysis IPC handler with Admin permission check - Add ReportAnalysisDialog component with charts - Add unit and E2E tests for report analyzer - Update Playwright config to exclude vitest-specific test files - Expand vitest config to include source code tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
700 B
TypeScript
25 lines
700 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['tests/**/*.{test,spec}.{ts,tsx}', 'src/**/__tests__/**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['node_modules', 'dist', 'out', 'tests/e2e'],
|
|
setupFiles: ['tests/setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html']
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@main': path.resolve(__dirname, './src/main'),
|
|
'@services': path.resolve(__dirname, './src/main/services'),
|
|
'@types': path.resolve(__dirname, './src/main/types'),
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
}
|
|
})
|