Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
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,332,922 weekly downloads. As such, jest-watch-typeahead popularity was classified as popular.
We found that jest-watch-typeahead demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.