Skip to content

Latest commit

 

History

History

jest-watch-lerna-packages

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

jest-watch-lerna-packages npm version

A Jest watch plugin to select Lerna packages to test

Usage

Install

Install jest (it needs Jest 23+) and jest-watch-lerna-packages

yarn add --dev jest jest-watch-lerna-packages

# or with NPM

npm install --save-dev jest jest-watch-lerna-packages

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": ["jest-watch-lerna-packages"]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: ['jest-watch-lerna-packages']
};

Run Jest in watch mode

yarn jest --watch

FAQ

Why is this not filtering my packages?

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