Stylelint Rule Tester for Node.js `node:test` runner
JSON →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.
Traffic · last 30 days ↓44% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇮🇹 Italy · 🇫🇷 France