Socket
Socket
Sign inDemoInstall

jest-watch-select-projects

Package Overview
Dependencies
11
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-watch-select-projects

An experimental ESLint runner for Jest


Version published
Weekly downloads
226K
decreased by-6.22%
Maintainers
1
Install size
443 kB
Created
Weekly downloads
 

Changelog

Source

2.0.0

Fixes

  • Update dependencies and drop Nodes older than version 8

Readme

Source

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.

FAQs

Last updated on 27 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc