Skip to content
PluginStats

eslint-plugin-jest-dom weekly downloads statistics

By testing-library (2 listings) · npm · ESLint plugins

ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom

View on npm Fresh · Oct 18, 2026

eslint-plugin-jest-dom has 1,239,071 recorded weekly downloads on npm, a decrease of 38.0% over the past 30 days, ranking #183 of 2,322 tracked listings.

Weekly downloads
1,239,071
Official API · Oct 18, 2026
7-day growth
-46.2%
-1.1M weekly downloads
30-day growth
-38.0%
-760.9K weekly downloads
90-day growth
-33.8%
-633.8K weekly downloads
Rank
#183
Among tracked npm listings

About eslint-plugin-jest-dom

<div align="center"> <h1>eslint-plugin-jest-dom</h1> <p>ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom.</p> </div>
<!-- prettier-ignore-start -->

[![Build Status][build-badge]][build] [![Code Coverage][coverage-badge]][coverage] [![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends] [![MIT License][license-badge]][license] ![All Contributors][all-contributors-badge] [![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]

<!-- prettier-ignore-end -->

Table of Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->

Installation

This module is distributed via [npm][npm] which is bundled with [node][node] and should be installed as one of your project's devDependencies:

npm install --save-dev eslint-plugin-jest-dom

This library has a required peerDependencies listing for ESLint.

Usage

[!NOTE]

eslint.config.js is supported, though most of the plugin documentation still currently uses .eslintrc syntax; compatible versions of configs are available prefixed with flat/ and may be subject to small breaking changes while ESLint v9 is being finalized.

Refer to the ESLint documentation on the new configuration file format for more.

Add jest-dom to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

module.exports = {
  plugins: ["jest-dom"],
  rules: {
    // your configuration
  },
};

Then configure the rules you want to use under the rules section.

module.exports = {
  rules: {
    "jest-dom/prefer-checked": "error",
    "jest-dom/prefer-enabled-disabled": "error",
    "jest-dom/prefer-required": "error",
    "jest-dom/prefer-to-have-attribute": "error",
  },
};

Recommended Configuration

This plugin exports a recommended configuration that enforces good jest-dom practices (you can find more info about enabled rules in Supported Rules section).

To enable this configuration with .eslintrc, use the extends property:

module.exports = {
  extends: "plugin:jest-dom/recommended",
  rules: {
    // your configuration
  },
};

To enable this configuration with eslint.config.js, use jestDom.configs['flat/recommended']:

module.exports = [
  {
    files: [/* glob matching your test files */],
    ...require("eslint-plugin-jest-dom").configs["flat/recommended"],
  },
];

Supported Rules

<!-- begin auto-generated rules list -->

💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.

Name                       Description💼🔧💡
prefer-checkedprefer toBeChecked over checking attributes✅🔧
prefer-emptyPrefer toBeEmpty over checking innerHTML✅🔧
prefer-enabled-disabledprefer toBeDisabled or toBeEnabled over checking attributes✅🔧
prefer-focusprefer toHaveFocus over checking document.activeElement✅🔧
prefer-in-documentPrefer .toBeInTheDocument() for asserting the existence of a DOM node✅🔧💡
prefer-pressedprefer toBePressed over checking attributes🔧
prefer-requiredprefer toBeRequired over checking properties✅🔧
prefer-to-have-attributeprefer toHaveAttribute over checking getAttribute/hasAttribute✅🔧
prefer-to-have-classprefer toHaveClass over checking element className✅🔧
prefer-to-have-styleprefer toHaveStyle over checking element style✅🔧
prefer-to-have-text-contentPrefer toHaveTextContent over checking element.textContent✅🔧
prefer-to-have-valueprefer toHaveValue over checking element.value✅🔧
<!-- end auto-generated rules list -->

Issues

Looking to contribute? Look for the [Good First Issue][good-first-issue] label.

🐛 Bugs…

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • jest-dom
  • testing-library
  • react-testing-library
  • dom-testing-library
  • RTL
  • DTL
  • tests

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-jest-dom weekly downloads on npm, last 90 days: 1,239,071 weekly downloads as of Oct 18, 2026, -33.8% over 90 days.eslint-plugin-jest-domWeekly downloads on npm · Last 90 days1,239,071downloads / week-33.8% over 90 days0500K1M1.5M2M2.5M3MJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
eslint-plugin-jest-dom weekly downloads on npm, last 90 days: 1,239,071 weekly downloads as of Oct 18, 2026, -33.8% over 90 days.

7/30/90-day growth

eslint-plugin-jest-dom weekly downloads growth on npm: -46.2% over 7 days, -38.0% over 30 days, -33.8% over 90 days.eslint-plugin-jest-domWeekly downloads growth on npm1,239,071downloads / week now7-day growth-1,063,591 weekly downlo…-46.2%30-day growth-760,875 weekly downloads-38.0%90-day growth-633,817 weekly downloads-33.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
eslint-plugin-jest-dom weekly downloads growth on npm: -46.2% over 7 days, -38.0% over 30 days, -33.8% over 90 days.

Ranking history

eslint-plugin-jest-dom npm ranking history: currently #183 (by weekly downloads).eslint-plugin-jest-domnpm ranking · by weekly downloads · Last 90 days#183current rank#60#80#100#120#140#160#180#200Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
eslint-plugin-jest-dom npm ranking history: currently #183 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 10, #3 (overall #183)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins256 listings · 13 pages · page 2, #10 (overall #30)
ESLint plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (543)
Recent weekly downloads observations for eslint-plugin-jest-dom
Date (UTC)Weekly downloadsChange vs. previous
1,239,071+130.3K
1,108,747-135.1K
1,243,809+37.9K
1,205,868-551.2K
1,757,029-566K
2,323,0230
2,323,023+20.4K
2,302,662+23.6K
2,279,051+27.5K
2,251,581+36.2K
2,215,355-4K
2,219,321+19.9K
2,199,392-543.7K
2,743,060—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-jest-dom alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/eslint-plugin-jest-dom. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.