2025-07-13 13:46:12 -05:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
import path from 'path';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
test: {
|
|
|
|
|
globals: true,
|
|
|
|
|
environment: 'node',
|
|
|
|
|
coverage: {
|
|
|
|
|
provider: 'v8',
|
|
|
|
|
reporter: ['text', 'json', 'html', 'lcov'],
|
|
|
|
|
include: [
|
|
|
|
|
'src/cli-tools/**/*.ts',
|
2025-07-15 17:15:43 -05:00
|
|
|
'src/cli/**/*.ts',
|
|
|
|
|
'src/browser-extension/**/*.ts',
|
|
|
|
|
'src/mcp-tools/**/*.ts'
|
2025-07-13 13:46:12 -05:00
|
|
|
],
|
|
|
|
|
exclude: [
|
|
|
|
|
'**/*.test.ts',
|
|
|
|
|
'**/*.spec.ts',
|
|
|
|
|
'**/test/**',
|
|
|
|
|
'**/node_modules/**',
|
|
|
|
|
'**/dist/**',
|
|
|
|
|
'**/out/**'
|
|
|
|
|
],
|
|
|
|
|
thresholds: {
|
|
|
|
|
lines: 95,
|
|
|
|
|
functions: 95,
|
|
|
|
|
branches: 95,
|
|
|
|
|
statements: 95
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|