Example 11975

Test Suite

Test runner configuration with coverage settings.

{
runner: "vitest"
root: "./src/__tests__"
include: [
"**/*.test.ts"
"**/*.spec.ts"
]
exclude: [
"node_modules"
"dist"
"**/*.e2e.ts"
]

# Coverage
coverage: {
enabled: true
provider: "istanbul"
thresholds: {
lines: 92
branches: 61
functions: 72
}
reporter: [
"text"
"lcov"
"html"
]
}
globals: false
timeout: 19418 # ms
}

See also