Files
bookorbit/server/vitest.config.ts
T

32 lines
808 B
TypeScript

import path from 'path'
import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: {
tsconfigPaths: true,
alias: {
'@projectx/types': path.resolve(__dirname, '../packages/types/src/index.ts'),
},
},
test: {
globals: true,
environment: 'node',
pool: 'forks',
include: ['src/**/*.test.ts', 'test/**/*.test.ts'],
passWithNoTests: true,
reporters: process.env.CI ? ['default', 'github-actions'] : ['default'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
include: ['src/**/*.ts'],
exclude: ['src/**/*.test.ts', 'src/scripts/**', 'src/**/*.module.ts', 'src/main.ts'],
thresholds: {
statements: 50,
branches: 43,
functions: 46,
lines: 52,
},
},
},
})