0.0.4 • Published 3 years ago

@jamesacarr/jest-reporter-github-actions v0.0.4

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

Jest Reporter for GitHub Actions

Test status NPM badge

A custom reporter for Jest that creates annotations when run via GitHub Actions

Installation

npm install -D @jamesacarr/jest-reporter-github-actions

Or, even better:

yarn add -D @jamesacarr/jest-reporter-github-actions

Usage

To get annotations working in your GitHub Actions runs, you need to setup Jest to use this reporter. You can do that by adding the following to your jest.config.js:

module.exports = {
  reporters: [
    'default',
    '@jamesacarr/jest-reporter-github-actions'
  ],
  testLocationInResults: true,
}

Or, you can simply run Jest with the following options:

jest --testLocationInResults --reporters=default --reporters=@jamesacarr/jest-reporter-github-actions
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago