32 lines
774 B
TypeScript
32 lines
774 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
test: {
|
|
name: 'unit',
|
|
include: ['test/unit/**/*.test.ts']
|
|
}
|
|
},
|
|
{
|
|
test: {
|
|
name: 'integration',
|
|
include: ['test/integration/**/*.test.ts'],
|
|
testTimeout: 120_000,
|
|
hookTimeout: 240_000
|
|
}
|
|
}
|
|
],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/**'],
|
|
exclude: ['src/index.ts'],
|
|
thresholds: {
|
|
lines: 90,
|
|
functions: 90
|
|
}
|
|
}
|
|
}
|
|
})
|