Skip to content

Jest coverage diff reporter

Actions
Comments jest coverage report on your PR and compares it with its base branch coverage
v0.1.9
Latest
Star (1)

What it does

Posts coverage report in a comment on your PR, or in a commit when pushing to your default branch.

Features

  • can be run on both PR and pushes on main
  • on a PR, it will compare coverage with base branch
    • 2x faster than other actions on the marketplace thanks to aggressive caching
  • coming soon:
    • sharded tests support
    • better hanlding of github's 50 limit on annotations

Usage

name: jest-reports
on:
  push:
    branches:
      - main
  pull_request:

jobs:
  compare-cov:
    runs-on: ubuntu-latest
    steps:
      - uses: vgrafe/jest-reports@v0.1.5

Options

with:
  github-token:
    description: "A github access token"
    default: ${{ github.token }}
  scope:
    description: "Set the scope of the jest run: all, changed in PR, changed since last successful run on the PR"
    default: "all"
    options:
      - all
      - pr-changes
      - changes-since-last-success
  run-steps:
    description: "skip any step by removing the corresponging item from this comma-separated list"
    default: "compare-with-base-branch,report-on-github,annotations-changes,annotations-all"

Jest coverage diff reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Comments jest coverage report on your PR and compares it with its base branch coverage
v0.1.9
Latest

Jest coverage diff reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.