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 29,850 recorded weekly downloads on npm, a decrease of 28.4% over the past 30 days, ranking #693 of 2,322 tracked listings.
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
npm install --save-dev eslint eslint-node-test
Requires ESLint >=10.4, flat config, and ESM.
Usage
Use a preset config or configure each rule in eslint.config.js.
import nodeTest from 'eslint-node-test';
import {defineConfig} from 'eslint/config';
export default defineConfig([
{
files: [
'**/*.js'
],
plugins: {
'node-test': nodeTest
},
extends: [
'node-test/recommended'
]
}
]);
Or configure rules individually:
import nodeTest from 'eslint-node-test';
import {defineConfig} from 'eslint/config';
export default defineConfig([
{
files: [
'**/*.js'
],
plugins: {
'node-test': nodeTest
},
rules: {
'node-test/no-only-test': 'error',
'node-test/no-identical-title': 'error'
}
}
]);
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
<!-- begin auto-generated rules list -->💼 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().… |
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- node-test
- node:test
- test-runner
- testing
- test
- linter
- lint
- style
- xo
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
7/30/90-day growth
Ranking history
Listing placement
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 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 (122)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 20, 2026. See the methodology.