UNPKG

jest-progress-bar-reporter

Version:
35 lines (24 loc) 1.32 kB
# Progress bar reporter for jest [![Build Status](https://travis-ci.org/pierreroth64/jest-progress-bar-reporter.svg?branch=master)](https://travis-ci.org/pierreroth64/jest-progress-bar-reporter) [![npm version](https://badge.fury.io/js/jest-progress-bar-reporter.svg)](https://badge.fury.io/js/jest-progress-bar-reporter) [![npm downloads](https://img.shields.io/npm/dm/jest-progress-bar-reporter.svg?style=flat-square)](https://www.npmjs.com/package/jest-progress-bar-reporter) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) ## Installation You may install this package as a development dependency: ```bash npm install --save-dev jest-progress-bar-reporter ``` ## Configuration Configure [Jest](https://facebook.github.io/jest/docs/en/configuration.html) to use the reporter. For example, create a `jest.config.js` file containing: ```javascript module.exports = { verbose: false, testPathIgnorePatterns: ['/node_modules/'], reporters: ['jest-progress-bar-reporter'] }; ``` You can checkout the expected output: ```bash git clone https://github.com/pierreroth64/jest-progress-bar-reporter.git cd jest-progress-bar-reporter npm install npm run example ``` ![Test run](./example/dot.gif?raw=true 'Test run')