eslint-plugin-jest-dom
JSON →ESLint plugin designed to enforce best practices and catch common mistakes when using jest-dom matchers (like toBeChecked, toHaveAttribute) in Testing Library tests. The current stable version is 5.5.0, released in November 2024, with releases every few months. It supports ESLint v6–v9 and provides a recommended configuration as well as flat configs for the new ESLint configuration system. Unlike generic lint rules, this plugin is specifically tailored to the jest-dom API, offering autofixable rules and suggestions to improve test quality. It ships TypeScript definitions and makes @testing-library/dom an optional peer dependency.
Traffic · last 30 days ↓71% vs prev 7d
total hits 13
actors 5 distinct systems
last hit 4d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · TH · 🇧🇷 Brazil · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/eslint-plugin-jest-dom
compatibility /v1/registry/eslint-plugin-jest-dom/compatibility