Example 3261

Test Suite

Test runner configuration with coverage settings.

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

# Coverage
coverage: {
enabled: true
provider: "istanbul"
thresholds: {
lines: 87
branches: 64
functions: 77
}
reporter: [
"text"
"lcov"
"html"
]
}
globals: true
timeout: 24165 # ms
}

See also