jest-watch-options

1.2.0 • Public • Published

jest-watch-options

A Jest watch mode plugin to change CLI options while Jest is running.

build status npm package license

Installation

Run

npm install --save-dev jest-watch-options

and add the following option to your Jest config:

watchPlugins: ['jest-watch-options'],

Usage

While in Jest watch mode, press - to open up the options prompt (the first - will already be there), then keep typing the options you want to apply and hit enter to confirm.

Note that Jest only allows select options to be changed at runtime (documentation & updateConfigAndRun source code).

Example

--no-bail --collectCoverage --collectCoverageFrom **/*.js

Readme

Keywords

Package Sidebar

Install

npm i jest-watch-options

Weekly Downloads

4

Version

1.2.0

License

MIT

Unpacked Size

158 kB

Total Files

11

Last publish

Collaborators

  • jeysal