mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
32 lines
808 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
})
|