Eslint rule to disallow snapshot testing.
npm install eslint-plugin-no-snapshot-testingnpm i eslint-plugin-no-snapshot-testing --save-dev
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.