Example 14178

Test Suite

Test runner configuration with coverage settings.

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

# Coverage
coverage: {
enabled: true
provider: "v8"
thresholds: {
lines: 79
branches: 82
functions: 94
}
reporter: [
"text"
"lcov"
"html"
]
}
globals: false
timeout: 22269 # ms
}

See also