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
42.0%
119 / 283
Low
statements
40.8%
119 / 292
Low
branches
32.9%
24 / 73
Critical
functions
35.0%
14 / 40
Critical
Tests passed 92 / 92
Test files 6

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 served at:

forgekit.build/coverage/ (available after CI deploys)

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.