by jest-community · eslint-plugin-jest
Catches focused or disabled tests, missing assertions and invalid expect calls in Jest suites.
pnpm add -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 | error | In ESLint, Oxlint, Biome | 47.9M | +56.3% |
| jest/no-identical-title | error | In ESLint, Oxlint, Biome | 47.9M | +56.3% |
| jest/no-export | error | In ESLint, Oxlint, Biome | 46.7M | +58.2% |
| jest/no-disabled-tests | warn | In ESLint, Oxlint, Biome | 17.9M | +9.6% |
| jest/valid-expect | error | In ESLint, Oxlint | 17.9M | +9.6% |
| jest/expect-expect | warn | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/no-conditional-expect | error | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/no-done-callback | error | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/no-jasmine-globals | error | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/no-standalone-expect | error | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/valid-title | error | In ESLint, Oxlint, Biome | 16.7M | +9.7% |
| jest/no-alias-methods | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/no-commented-out-tests | warn | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/no-deprecated-functions | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/no-interpolation-in-snapshots | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/no-mocks-import | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/no-test-prefixes | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/valid-describe-callback | error | In ESLint, Oxlint | 16.7M | +9.7% |
| jest/valid-expect-in-promise | error | In ESLint, Oxlint | 16.7M | +9.7% |