chathurabuddi/Jest PR Reporter

Turn Jest results into a sticky PR comment, inline check annotations, a job summary, and pass/fail gating.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token used to post the comment and check annotations.no${{ github.token }}
results-filePath to the Jest JSON results file (jest --json --outputFile=...).nojest-results.json
coverage-filePath to the Jest coverage-summary.json (coverageReporters: json-summary). Optional; coverage sections are omitted when missing.nocoverage/coverage-summary.json
run-testsWhen "true", the action runs `test-command` before reporting. When "false" (default), it consumes pre-existing result files produced by a prior step.nofalse
test-commandCommand used to run Jest when `run-tests` is "true". The required reporting flags are appended automatically.nonpm test
working-directoryDirectory to resolve result/coverage files against and to run tests from.no.
coverage-thresholdCoverage percentage boundary used for PASS/WARN/FAIL status and the per-file breakdown.no80
commentPost (and update in place) a sticky PR comment with the report.notrue
comment-markerHidden HTML marker that identifies the sticky comment. Use distinct markers to run multiple instances on one PR.no<!-- jest-pr-reporter -->
annotationsPost inline check-run annotations on failing test lines.notrue
check-nameName of the check run created for failure annotations. Keep it distinct from the job-level check required by branch protection.noJest Failures
job-summaryWrite the report to the Actions job summary.notrue
fail-on-errorFail the action (non-zero exit) when any test failed.notrue
max-itemsMaximum number of files / tests rendered in each collapsible section.no20
namedescription
successtrue when all tests passed, false otherwise.
passedNumber of passing tests.
failedNumber of failing tests.
skippedNumber of skipped/todo tests.
totalTotal number of tests.
coverage-pctOverall coverage percentage (mean of statements/branches/functions/lines), or empty when no coverage.
durationTest run duration in seconds, or "—" when unavailable.