ESLint Rule Snapshot Testing

JSON →
library 3.2.0 ·javascript
verified May 27, 2026

eslint-snapshot-test provides a utility for creating and managing snapshot tests specifically for ESLint rules. It allows developers to verify the output of their custom ESLint rules, including reported errors, warnings, and autofix suggestions, by comparing them against stored snapshots. This ensures consistent rule behavior across code changes. The current stable version is 3.2.0, and it appears to have an active but irregular release cadence, often for dependency updates or minor features. A key differentiator is its focused API for interacting with ESLint's Linter directly, enabling fine-grained control over parsing options, rule options, and even file names during testing, which is crucial for robust ESLint rule development.

total hits 20
actors 9 distinct systems
last hit 4d ago OAI-SearchBot
OAI-SearchBot
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

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