Socket
Socket
Sign inDemoInstall

jest-watch-typeahead

Package Overview
Dependencies
7
Maintainers
8
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-watch-typeahead

Jest plugin for filtering by filename or test name


Version published
Weekly downloads
4.9M
increased by4.38%
Maintainers
8
Install size
5.42 MB
Created
Weekly downloads
 

Package description

What is jest-watch-typeahead?

The jest-watch-typeahead npm package is a set of watch plugins for Jest that provides typeahead filtering for tests and source files. It allows developers to quickly filter and run specific tests or test suites by typing patterns, filenames, or test names.

What are jest-watch-typeahead's main functionalities?

Filename typeahead

Allows developers to filter the list of files to run tests from by typing a pattern. As the developer types, the list of files is narrowed down, making it easier to find the desired file.

n/a

Test name typeahead

Enables developers to filter tests by their names. As you type the name of a test, only the tests that match the input pattern are shown, allowing for quick selection and execution of individual tests.

n/a

Other packages similar to jest-watch-typeahead

Readme

Source

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

FAQs

Last updated on 24 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc