Skip to content

Test Coverage ​

Coverage is collected by Jest with Istanbul on every push to main and every pull request. The numbers below were recorded during the last docs build.


Summary ​

lines
87.9%
910 / 1035
Good
statements
87.0%
982 / 1128
Good
branches
83.6%
366 / 438
Good
functions
87.5%
126 / 144
Good
Tests passed 429 / 433
Test files 19

Thresholds ​

CI fails if coverage drops below:

MetricMinimumScope
Lines40%src/core/**
Functions33%src/core/**
Branches30%src/core/**

src/commands/** is excluded; those are covered by smoke and integration tests in CI.

Interactive Report ​

The full Istanbul HTML report with per-file line-by-line highlighting is available at:

/coverage-report/ on forgekit.build after the docs CI job runs. If the link returns 404, the next push to main will regenerate it.

Run locally ​

bash
# From repo root
npm test --workspace=packages/cli -- --coverage

# Open the HTML report
open packages/cli/coverage/index.html

Adding tests ​

Test files live in packages/cli/src/__tests__/. See Contributing for the full guide.

Released under the Apache 2.0 License.