An ESLint plugin (v1.0.61) that enforces a rule disallowing snapshot testing in Jest. It prevents calls to `toMatchSnapshot` and `toMatchInlineSnapshot`, offering an auto-fix to remove them. This package is a niche utility for teams that ban snapshot testing. It has a simple setup, only one rule, and is dependency-light. No known major alternative exists with identical focus.
npm install eslint-plugin-no-snapshot-testingVerified import paths — ran on the pinned version, not inferred.
Shows ESLint config enabling the plugin and rule, and an example of a flagged snapshot call.
Use exactly as documented; no alternative rule name exists.
Extend rule or use additional ESLint configurations if needed.
Ensure snapshot call is on its own line before auto-fix.
Plugin is intentionally limited; consider custom ESLint rules for advanced cases.
Run `npm install eslint-plugin-no-snapshot-testing --save-dev` and check node_modules.
Add 'no-snapshot-testing' to plugins in .eslintrc.
Ensure plugins array contains 'no-snapshot-testing' and rules object key is 'no-snapshot-testing/no-snapshot-testing'.