npm.io
0.0.7 • Published 2 years ago

disable-snapshot-testing

Licence
Version
0.0.7
Deps
5
Size
7 kB
Vulns
0
Weekly
0

Installation

Run npm i disable-snapshot-testing --save-dev

or

Run yarn add disable-snapshot-testing

Usage

Add disable-snapshot-testing to your .eslintrc file.

{
    "plugins": "no-snapshot-testing"
}

and

{
    "rules": {"disable-snapshot-testing/disable-snapshot-testing": "error"}
}

from now on all toMatchSnapshot and toMatchInlineSnapshot calls will be disallowed and removed with fix run.

Keywords