Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

jest-watch-repeat

1.0.2 • Public • Published

jest-watch-repeat

NPM version NPM downloads Build status Codecov

Greenkeeper badge semantic-release

Loop tests n times.

Requires jest@23+.

Usage

To use jest-watch-repeat, add it to the watchPlugins section of the Jest configuration:

{
  "jest": {
    "watchPlugins": [
      "jest-watch-repeat", // or
      ["jest-watch-repeat", { "key": "r", "prompt": "repeat test runs." }]
    ]
  }
}

In watch mode, press r to invoke a prompt and enter number of times you want the tests to be repeated:

Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press r to repeat test runs.
 › Press Enter to trigger a test run.
Repeat Mode Usage
 › Press Esc to exit repeat mode.
 › Press Enter to repeat test run n times.
 repeat › 3

You can only enter numbers.

install

npm i jest-watch-repeat

Downloadsweekly downloads

175

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability