by jest-community · eslint-plugin-jest
Catches focused or disabled tests, missing assertions and invalid expect calls in Jest suites.
npm install -D eslint eslint-plugin-jest// eslint.config.js
import jest from "eslint-plugin-jest";
export default [
jest.configs["flat/recommended"],
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| jest/no-focused-tests In ESLint, Oxlint, Biome48.5M reach · +56.7% | error | In ESLint, Oxlint, Biome | 48.5M | +56.7% |
| jest/no-identical-title In ESLint, Oxlint, Biome48.5M reach · +56.7% | error | In ESLint, Oxlint, Biome | 48.5M | +56.7% |
| jest/no-export In ESLint, Oxlint, Biome47.3M reach · +58.7% | error | In ESLint, Oxlint, Biome | 47.3M | +58.7% |
| jest/no-disabled-tests In ESLint, Oxlint, Biome18M reach · +9.8% | warn | In ESLint, Oxlint, Biome | 18M | +9.8% |
| jest/valid-expect In ESLint, Oxlint18M reach · +9.8% | error | In ESLint, Oxlint | 18M | +9.8% |
| jest/expect-expect In ESLint, Oxlint, Biome16.7M reach · +10.1% | warn | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/no-conditional-expect In ESLint, Oxlint, Biome16.7M reach · +10.1% | error | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/no-done-callback In ESLint, Oxlint, Biome16.7M reach · +10.1% | error | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/no-jasmine-globals In ESLint, Oxlint, Biome16.7M reach · +10.1% | error | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/no-standalone-expect In ESLint, Oxlint, Biome16.7M reach · +10.1% | error | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/valid-title In ESLint, Oxlint, Biome16.7M reach · +10.1% | error | In ESLint, Oxlint, Biome | 16.7M | +10.1% |
| jest/no-alias-methods In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/no-commented-out-tests In ESLint, Oxlint16.7M reach · +10.1% | warn | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/no-deprecated-functions In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/no-interpolation-in-snapshots In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/no-mocks-import In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/no-test-prefixes In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/valid-describe-callback In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |
| jest/valid-expect-in-promise In ESLint, Oxlint16.7M reach · +10.1% | error | In ESLint, Oxlint | 16.7M | +10.1% |