Stylelint Rule Tester for Node.js `node:test` runner

JSON →
library 1.1.0 ·javascript
verified May 27, 2026

stylelint-test-rule-node is a utility package designed to facilitate the testing of Stylelint rules using Node.js's built-in `node:test` runner. It provides a structured API, `testRule`, for defining test cases that include code samples, expected messages, line/column information, and autofix scenarios. Additionally, `testRuleConfigs` allows for testing rule configuration validity. The package is currently at version 1.1.0 and is actively maintained by the Stylelint team. Releases typically follow major Stylelint versions or as new features for testing are introduced. Its key differentiator is leveraging the native Node.js test runner, avoiding external test frameworks, making it a lightweight and integrated solution for developers already within the Node.js ecosystem, particularly for those contributing to or extending Stylelint.

total hits 16
actors 6 distinct systems
last hit 18h ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇮🇹 Italy · 🇫🇷 France