- Create tests/e2e/extractor-workflow.test.ts with full workflow tests - Add playwright.config.ts for E2E test configuration - Add npm scripts: test:e2e, test:e2e:ui, test:e2e:report - Update vitest.config.ts to exclude E2E tests
25 lines
654 B
TypeScript
25 lines
654 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}'],
|
|
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')
|
|
}
|
|
}
|
|
})
|