
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
eslint-plugin-jest-extended
Advanced tools
$ yarn add --dev eslint eslint-plugin-jest-extended
Note: If you installed ESLint globally then you must also install
eslint-plugin-jest-extended globally.
[!NOTE]
eslint.config.jsis supported, though most of the plugin documentation still currently uses.eslintrcsyntax.Refer to the ESLint documentation on the new configuration file format for more.
Add jest-extended to the plugins section of your .eslintrc configuration
file. You can omit the eslint-plugin- prefix:
{
"plugins": ["jest-extended"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"jest-extended/prefer-to-be-true": "warn",
"jest-extended/prefer-to-be-false": "error"
}
}
This plugin does not export a recommended configuration, as the rules provided by this plugin are about enforcing usage of preferred matchers for particular patterns, rather than helping to prevent bugs & commonly overlooked traps.
If you want to enable all rules instead of only some you can do so by adding the
all configuration to your .eslintrc config file:
{
"extends": ["plugin:jest-extended/all"]
}
To enable this configuration with eslint.config.js, use
jestExtended.configs['flat/all']:
const jestExtended = require('eslint-plugin-jest-extended');
module.exports = [
{
files: [
/* glob matching your test files */
],
...jestExtended.configs['flat/all'],
},
];
Note that the all configuration may change in any release and is thus unsuited
for installations requiring long-term consistency.
🔧 Automatically fixable by the
--fix CLI option.
| Name | Description | 🔧 |
|---|---|---|
| prefer-to-be-array | Suggest using toBeArray() | 🔧 |
| prefer-to-be-false | Suggest using toBeFalse() | 🔧 |
| prefer-to-be-object | Suggest using toBeObject() | 🔧 |
| prefer-to-be-true | Suggest using toBeTrue() | 🔧 |
| prefer-to-have-been-called-once | Suggest using toHaveBeenCalledOnce() | 🔧 |
This project aims to provide linting rules to aid in writing tests using jest.
https://github.com/jest-community/eslint-plugin-jest
This project aims to provide formatting rules (auto-fixable where possible) to ensure consistency and readability in jest test suites.
https://github.com/dangreenisrael/eslint-plugin-jest-formatting
3.0.1 (2025-09-21)
eslint-plugin-jest (#235) (6d2414a)@typescript-eslint/utils v7 & v8 (#241) (40766b0)@typescript-eslint/utils to v6 (#238) (657bc42)FAQs
Eslint rules for Jest Extended
The npm package eslint-plugin-jest-extended receives a total of 67,485 weekly downloads. As such, eslint-plugin-jest-extended popularity was classified as popular.
We found that eslint-plugin-jest-extended 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.