jest-watch-suspend
Suspend watch mode
Last updated a year ago by unional .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jest-watch-suspend 
SYNC missed versions from official npm registry.

jest-watch-suspend

NPM version NPM downloads

Circle CI Travis CI Codecov Coveralls Status

Greenkeeper Semantic Release

Visual Studio Code Wallaby.js

Pausing/resuming jest watch mode.

Requires jest@23+.

Usage

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

{
  "jest": {
    "watchPlugins": [
      // default
      "jest-watch-suspend",
      // configure
      [
        "jest-watch-suspend", {
          // override key press
          "key": "s",
          // override prompt
          "prompt": "suspend watch mode",
          // starts in suspend mode
          "suspend-on-start": true
        }
      ]
    ]
  }
}

Use Cases

Suspend on start:

  • (suspended) -> [p] + <filter> | [t] + <filter> -> [s] (resume)

Setup both path and name filter before running tests:

  • [s] (suspend) -> [p] + <filter> -> [t] + <filter> -> [s] (resume)

Change multiple files before running tests:

  • [s] (suspend) -> multiple changes and file saves -> [s] (resume)

Current Tags

  • 1.1.2                                ...           latest (a year ago)

5 Versions

  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 5
Last Day 0
Last Week 0
Last Month 8
Dependencies (2)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |