eslint-node-test weekly downloads statistics
By sindresorhus (6 listings) · npm · ESLint plugins
ESLint rules for the Node.js built-in test runner (`node:test`)
eslint-node-test has 23,998 recorded weekly downloads on npm, a decrease of 41.9% over the past 30 days.
It ranks #711 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +10.1%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About eslint-node-test
eslint-node-test
ESLint rules for the Node.js built-in test runner (node:test)
This plugin helps you avoid common mistakes and write more consistent tests with node:test, the test runner built into Node.js.
Install
Requires ESLint >=10.4, flat config, and ESM.
Usage
Use a preset config or configure each rule in eslint.config.js.
Or configure rules individually:
The example scopes the plugin to JavaScript files. Add TypeScript extensions only when your ESLint config provides a TypeScript parser for them. The rules only activate in files that import from node:test (and assertion rules also activate for Node's built-in assert module), so you can safely apply the plugin across your whole project.
Rules
💼 Configurations enabled in.\ ✅ Set in the recommended configuration.\ ☑️ Set in the unopinionated configuration.\ 🔧 Automatically fixable by the --fix CLI option.\ 💡 Manually fixable by editor suggestions.
| Name | Description | 💼 | 🔧 | 💡 |
| assertion-arguments | Enforce the correct number of arguments for node:assert assertions. | ✅ ☑️ | | | | consistent-assert-style | Enforce a consistent truthiness assertion style. | ✅ | 🔧 | | | consistent-assert-throws-callback-style | Enforce a consistent body style for assert.throws() arrow callbacks. | | 🔧 | | | consistent-modifier-style | Enforce a consistent style for test modifiers. | | | | | consistent-test-context-name | Enforce a consistent name for the test context parameter. | ✅ ☑️ | | | | consistent-test-filename | Enforce a consistent test file name pattern. | | | | | consistent-test-it | Enforce consistent use of test or it. | | | | | hooks-order | Enforce a consistent order of hook declarations. | ✅ ☑️ | 🔧 | | | max-assertions | Enforce a maximum number of assertions in a test. | | | | | max-nested-describe | Enforce a maximum depth for nested describe blocks. | ✅ | | | | no-assert-in-describe | Disallow assertions directly inside a describe body. | ✅ | | | | no-assert-in-hook | Disallow assertions inside hooks. | | | | | no-assert-match-string | Disallow strings as the regexp argument of assert.match()/assert.doesNotMatch(). | ✅ ☑️ | | 💡 | | no-assert-throws-async | Disallow passing an async function to assert.throws()/assert.doesNotThrow(). | ✅ ☑️ | | 💡 | | no-assert-throws-call | Disallow calling the function passed to assert.throws(). | ✅ ☑️ | | 💡 | | no-assert-throws-multiple-statements | Disallow multiple statements in assert.throws()/assert.rejects() callbacks. | ✅ | | | | no-assert-throws-string | Disallow a string as the error matcher of assert.throws()/assert.rejects(). | ✅ ☑️ | | 💡 | | no-async-describe | Disallow async describe callbacks. | ✅ ☑️ | | | | no-async-fn-without-await | Disallow async test/hook functions that have no await expression. | ✅ ☑️ | | 💡 | | no-callback-and-promise | Disallow a test or hook from using both a callback and a Promise. | ✅ ☑️ | | | | no-commented-tests | Disallow commented-out tests. | | | | | no-compound-assertion | Disallow compound truthiness assertions. | ✅ ☑️ | 🔧 | | | no-conditional-assertion | Disallow assertions inside conditional code within a test. | ✅ ☑️ | | | | no-conditional-in-test | Disallow conditional logic inside tests. | | | | | no-conditional-tests | Disallow conditionally registering tests, suites, and hooks. | ✅ | | | | no-conflicting-modifiers | Disallow conflicting test modifiers. | ✅ ☑️ | | | | no-constant-assertion | Disallow assertions with constant outcomes. | ✅ ☑️ | | | | no-done-callback | Disallow callback (done) parameters in tests and hooks. | | | | | no-duplicate-assertions | Disallow adjacent duplicate assertions. | ✅ ☑️ | | | | no-duplicate-hooks | Disallow duplicate hooks within the same scope. | ✅ | | | | no-duplicate-mock-timers-enable | Disallow enabling mock timers more than once without resetting them. | ✅ ☑️ | | | | no-duplicate-plan | Disallow setting a test plan more than once in the same test. | ✅ ☑️ | | | | no-expect-failure-without-reason | Require a reason when marking a test or suite as expected to fail. | ✅ | | | | no-export | Disallow exports from test files. | ✅ | | | | no-identical-assertion-arguments | Disallow comparing a value to itself in an assertion. | ✅ ☑️ | | | | no-identical-title | Disallow identical test titles within the same scope. | ✅ ☑️ | | | | no-import-test-files | Disallow imports of Node.js test files. | ✅ ☑️ | | | | no-incorrect-deep-equal | Disallow deepEqual/deepStrictEqual (and their notDeep* variants) when comparing with primitives. | ✅ ☑️ | 🔧 | | | no-incorrect-strict-equal | Disallow strictEqual/equal (and their not* variants) when comparing with an object or array literal. | ✅ ☑️ | 🔧 | | | no-late-test-activity | Disallow test activity inside detached asynchronous callbacks. | ✅ ☑️ | 🔧 | | | no-loop-static-title | Disallow a static test or suite title inside a loop. | ✅ ☑️ | | | | no-misused-concurrency | Disallow the concurrency option on a test without subtests. | ✅ ☑️ | | | | no-misused-context-hook | Disallow context hooks without runnable subtests. | ✅ ☑️ | | | | no-mock-module-after-import | Disallow mocking a module after statically importing it. | ✅ ☑️ | | | | no-mock-timers-destructured-import | Disallow destructured timer imports when using mock.timers. | ✅ ☑️ | | | | no-nested-tests | Disallow tests and suites nested inside a test body. | ✅ ☑️ | | | | no-only-test | Disallow the .only test modifier. | ✅ ☑️ | | 💡 | | no-parent-test-context | Disallow references to parent test contexts inside subtests. | ✅ ☑️ | | 💡 | | no-process-chdir-in-test | Disallow changing the working directory inside tests. | ✅ | | | | no-process-env-mutation | Disallow mutating process.env inside tests. | ✅ | | | | no-process-exit-in-test | Disallow process exit control in test files. | ✅ ☑️ | | | | no-skip-test | Disallow the .skip test modifier. | ✅ | | 💡 | | no-skip-without-reason | Require a reason when skipping or marking a test as todo. | | | | | no-skip-without-return | Disallow…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- node-test
- node:test
- test-runner
- testing
- test
- linter
- lint
- style
- xo
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Listing placement
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 log 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 (121)Similar npm ESLint plugins plugins
All 20 eslint-node-test alternativesData 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-node-test. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.