# eslint-plugin-no-snapshot-testing

> Eslint rule to disallow snapshot testing.

Latest version **1.0.61** (published 2020-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-no-snapshot-testing
pnpm add eslint-plugin-no-snapshot-testing
yarn add eslint-plugin-no-snapshot-testing
bun add eslint-plugin-no-snapshot-testing
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.61 |
| Published | 2020-08-10 |
| First published | 2020-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Vic |
| Maintainers | vicjer |
| Keywords | eslint, eslintplugin, no-snapshots, no-snapshot, jest |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-snapshot-testing
- Repository: https://github.com/VicJer/eslint-plugin-no-snapshot-testing
- Issues: https://github.com/VicJer/eslint-plugin-no-snapshot-testing/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-snapshot-testing

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.61 (latest) — 2020-08-10
- 1.0.6 — 2020-08-10
- 1.0.5 — 2020-06-09
- 1.0.4 — 2020-06-05
- 1.0.3 — 2020-06-05
- 1.0.2 — 2020-06-05
- 1.0.1 — 2020-06-05
- 1.0.0 — 2020-06-05

## README

# eslint-plugin-no-snapshot-testing
Snapshot tests ... yuck.

## **Installation**
Run `npm i eslint-plugin-no-snapshot-testing --save-dev`

## **Usage**
Add `no-snapshot-testing` to your `.eslintrc` file.

```
{
    "plugins": "no-snapshot-testing"
}
```
and

```
{
    "rules": {"no-snapshot-testing/no-snapshot-testing": "error"}
}
```
from now on all `toMatchSnapshot` and `toMatchInlineSnapshot` calls will be disallowed and removed with fix run.

![](https://media.giphy.com/media/3oEduY2IBr0s8AdrIk/giphy.gif)

---
_Source: https://npm.io/package/eslint-plugin-no-snapshot-testing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
