import { defineConfig } from 'vitest/config'
import { resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
const __dirname = fileURLToPath(new URL('.', import.meta.url))
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['tests/**', '*.config.ts', 'dist/**'],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80
}
},
testTimeout: 10000,
hookTimeout: 10000
},
resolve: {
alias: {
'@promptx/core': resolve(__dirname, '../../src'),
'@domain': resolve(__dirname, './src/domain'),
'@application': resolve(__dirname, './src/application'),
'@infrastructure': resolve(__dirname, './src/infrastructure'),
'@presentation': resolve(__dirname, './src/presentation'),
'@shared': resolve(__dirname, './src/shared')
}
}
})