
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
jest-watch-typeahead
Advanced tools
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.
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
This package allows you to select which Jest projects to run using the watch mode. It's similar to jest-watch-typeahead in that it helps you filter and run specific parts of your test suite, but it operates on a project level rather than individual files or tests.
This package provides the ability to temporarily suspend watch mode in Jest. While it doesn't offer typeahead functionality, it complements the workflow by allowing you to pause test execution without stopping the Jest watch process.
Allows you to define groups of test suites and execute them as a group. This is somewhat similar to jest-watch-typeahead in that it helps you run a subset of your tests, but it does so based on predefined groups rather than dynamic typeahead filtering.
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
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',
],
};
module.exports = {
watchPlugins: [
[
'jest-watch-typeahead/filename',
{
key: 'k',
prompt: 'do something with my custom prompt',
},
],
],
};
yarn jest --watch
FAQs
Jest plugin for filtering by filename or test name
The npm package jest-watch-typeahead receives a total of 4,809,377 weekly downloads. As such, jest-watch-typeahead popularity was classified as popular.
We found that jest-watch-typeahead demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.