Socket
Socket
Sign inDemoInstall

@wopian/jest-reporter-github-annotations

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wopian/jest-reporter-github-annotations

Report Jest test failures with GitHub annotations


Version published
Weekly downloads
419
increased by1.7%
Maintainers
1
Install size
6.13 kB
Created
Weekly downloads
 

Readme

Source

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",
    ],
  }
}

Keywords

FAQs

Last updated on 28 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc