jest-watch-select-projects
An experimental ESLint runner for Jest
Last updated 5 years ago by simenb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jest-watch-select-projects 
SYNC missed versions from official npm registry.

Build Status npm version

jest-watch-select-projects

Select which Jest project to run

select-project

Usage

Install

Install jest(it needs Jest 23+) and jest-watch-select-projects

yarn add --dev jest jest-watch-select-projects

# or with NPM

npm install --save-dev jest jest-watch-select-projects

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": ["jest-watch-select-projects"]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: ['jest-watch-select-projects'],
};

Configuring your key and prompt name

module.exports = {
  watchPlugins: [
    [
      'jest-watch-select-projects',
      {
        key: 'X',
        // function or string
        prompt() {
          const activeProjectsText = this._getActiveProjectsText();
          return 'do something with my custom prompt';
        },
      },
    ],
  ],
};

Run Jest in watch mode

yarn jest --watch

FAQ

Why is this running all of my projects?

Make certain that you're using the SPACE key to toggle the selected state of projects and the ENTER key to confirm your settings.

Current Tags

  • 2.0.0                                ...           latest (5 years ago)
  • 0.0.2-0                                ...           next (6 years ago)

7 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.2-0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE