Add a bunfig.toml enabling coverage with text + lcov reporters, a test:coverage script, and gitignore the coverage/ output. Test files and the test-support helper are excluded so the numbers reflect product code only.
9 lines
373 B
TOML
9 lines
373 B
TOML
[test]
|
|
# Coverage is opt-in via `bun test --coverage` (see the test:coverage script).
|
|
# These settings only take effect when that flag is passed.
|
|
coverageReporter = ["text", "lcov"]
|
|
coverageDir = "coverage"
|
|
coverageSkipTestFiles = true
|
|
# test-support.ts is test scaffolding, not product code; keep it out of the numbers.
|
|
coveragePathIgnorePatterns = ["**/test-support.ts"]
|