Example 4463

Test Suite

Test runner configuration with coverage settings.

{
runner: "mocha"
root: "./tests"
include: [
"**/*.test.ts"
"**/*.spec.ts"
]
exclude: [
"node_modules"
"dist"
"**/*.e2e.ts"
]

# Coverage
coverage: {
enabled: true
provider: "v8"
thresholds: {
lines: 71
branches: 80
functions: 87
}
reporter: [
"text"
"lcov"
"html"
]
}
globals: true
timeout: 5062 # ms
}

See also