Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jest-plugin-filename

rogeliog37MIT0.0.1

Jest plugin for filtering by filename

readme

Build Status npm version

jest-plugin-filename

Filter your tests by filename

Usage

Install

Install jest(it needs Jest 23+) and jest-plugin-filename

yarn add --dev jest jest-plugin-filename

# or with NPM

npm install --save-dev jest jest-plugin-filename

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": ["jest-plugin-filename"]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: 'jest-plugin-filename',
};

Run Jest

yarn jest

changelog

master