# jest-watch-select-projects

> An experimental ESLint runner for Jest

Latest version **2.0.0** (published 2020-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-watch-select-projects
pnpm add jest-watch-select-projects
yarn add jest-watch-select-projects
bun add jest-watch-select-projects
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-01-27 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 67 |
| Author | Rogelio Guzman |
| Maintainers | rogeliog |

## Links

- npm: https://www.npmjs.com/package/jest-watch-select-projects
- Repository: https://github.com/rogeliog/jest-watch-select-projects
- Issues: https://github.com/rogeliog/jest-watch-select-projects/issues
- npm.io page: https://npm.io/package/jest-watch-select-projects

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [prompts](https://npm.io/package/prompts.md) ^2.2.1
- [ansi-escapes](https://npm.io/package/ansi-escapes.md) ^4.3.0

## Recent versions

- 2.0.0 (latest) — 2020-01-27
- 0.0.2-0 (next) — 2018-06-03
- 1.0.0 — 2019-09-07
- 0.1.2 — 2019-06-25
- 0.1.1 — 2018-09-20
- 0.1.0 — 2018-09-20
- 0.0.1 — 2018-05-30

## README

[![Build Status](https://travis-ci.org/jest-community/jest-watch-select-projects.svg?branch=master)](https://travis-ci.org/jest-community/jest-watch-select-projects) [![npm version](https://badge.fury.io/js/jest-watch-select-projects.svg)](https://badge.fury.io/js/jest-watch-select-projects)

<div align="center">
  <a href="https://facebook.github.io/jest/">
    <img width="150" height="150" vspace="" hspace="25" src="https://jestjs.io/img/jest.png">
  </a>
  <h1>jest-watch-select-projects</h1>
  <p>Select which Jest project to run</p>
</div>

![select-project](https://user-images.githubusercontent.com/574806/40741798-3ca7c250-6401-11e8-8398-d39ab4eea011.gif)

## Usage

### Install

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

```bash
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`

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

Or in `jest.config.js`

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

### Configuring your key and prompt name

```js
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

```bash
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.

---
_Source: https://npm.io/package/jest-watch-select-projects · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
