npm.io
1.0.61 • Published 6 years ago

eslint-plugin-no-snapshot-testing

Licence
MIT
Version
1.0.61
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
3

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.

Keywords