/jest-watch-toggle-verbosity

Jest watch plugin for toggling test verbosity

Primary LanguageJavaScriptMIT LicenseMIT

Build Status npm version

jest-watch-toggle-verbosity

Switch between verbose and non-verbose modes at will

Watch

Usage

Install

Install jest(it needs Jest 23.FIXME+) and jest-watch-toggle-verbosity

yarn add --dev jest jest-watch-toggle-verbosity

# or with NPM

npm install --save-dev jest jest-watch-toggle-verbosity

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": ["jest-watch-toggle-verbosity"]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: ['jest-watch-toggle-verbosity'],
}

Run Jest in watch mode

yarn jest --watch

# or with NPM

npx jest --watch