Skip to content

jest-community/jest-watch-typeahead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f113233 · Mar 3, 2025
Jul 15, 2024
Mar 27, 2018
Dec 4, 2024
May 2, 2023
May 29, 2018
May 2, 2023
Mar 1, 2018
Aug 25, 2022
Aug 25, 2022
Mar 21, 2019
Dec 4, 2024
Jan 24, 2023
Jun 7, 2018
Sep 29, 2021
Jul 31, 2023
May 2, 2023
Jan 15, 2025
May 2, 2023
May 2, 2023
Mar 3, 2025

Repository files navigation

Build Status npm version

jest-watch-typeahead

Filter your tests by file name or test name

watch

Usage

Install

Install jest(it needs Jest 27+) and jest-watch-typeahead

yarn add --dev jest jest-watch-typeahead

# or with NPM

npm install --save-dev jest jest-watch-typeahead

Add it to your Jest config

In your package.json

{
  "jest": {
    "watchPlugins": [
      "jest-watch-typeahead/filename",
      "jest-watch-typeahead/testname"
    ]
  }
}

Or in jest.config.js

module.exports = {
  watchPlugins: [
    'jest-watch-typeahead/filename',
    'jest-watch-typeahead/testname',
  ],
};

Configuring your key and prompt name

module.exports = {
  watchPlugins: [
    [
      'jest-watch-typeahead/filename',
      {
        key: 'k',
        prompt: 'do something with my custom prompt',
      },
    ],
  ],
};

Run Jest in watch mode

yarn jest --watch