jest-watch-yarn-workspaces

1.1.0 • Public • Published

jest-watch-yarn-workspaces npm version

A Jest watch plugin to select Yarn workspaces to test

Usage

Install

Install jest (it needs Jest 23+) and jest-watch-yarn-workspaces

yarn add --dev jest jest-watch-yarn-workspaces
 
# or with NPM 
 
npm install --save-dev jest jest-watch-yarn-workspaces

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": ["jest-watch-yarn-workspaces"]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: ['jest-watch-yarn-workspaces']
};

Run Jest in watch mode

yarn jest --watch

FAQ

Why is this not filtering my workspaces?

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

Package Sidebar

Install

npm i jest-watch-yarn-workspaces

Weekly Downloads

1,709

Version

1.1.0

License

MIT

Unpacked Size

2.38 kB

Total Files

3

Last publish

Collaborators

  • cameronhunter