jest-watch-lerna-packages

A Jest watch plugin to select Lerna packages to test

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
jest-watch-lerna-packages
1.1.04 years ago4 years agoMinified + gzip package size for jest-watch-lerna-packages in KB

Readme

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.