@wopian/jest-reporter-github-annotations

0.0.2 • Public • Published

Jest Reporter GitHub Annotations

npm npm bundlephobia

checks repoDependants devDeps sponsor

Report Jest test failures directly on pull requests with GitHub annotations

Install

yarn install -D @wopian/jest-reporter-github-annotations

Usage

This reporter only outputs failing test results in GitHub's annotation format, so you must include the default Jest reporter to get human readable test results in the terminal logs.

CLI (preferred)

Add it to your Jest script used by your GitHub Actions workflow in package.json:

{
  "scripts": {
    "test": "jest --reporters=default --reporters=@wopian/jest-reporter-github-annotations",
  }
}

Jest Configuration

Or add it to your Jest configuration in jest.config.js:

export default {
  reporters: [
    'default',
    '@wopian/jest-reporter-github-annotations',
  ],
}

Or package.json:

{
  "jest": {
    "reporters": [
      "default",
      "@wopian/jest-reporter-github-annotations",
    ],
  }
}

Package Sidebar

Install

npm i @wopian/jest-reporter-github-annotations

Weekly Downloads

291

Version

0.0.2

License

MIT

Unpacked Size

6.28 kB

Total Files

6

Last publish

Collaborators

  • wopian