eslint-plugin-no-snapshot-testing

1.0.61 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.61
    26,145
    • latest

Version History

Package Sidebar

Install

npm i eslint-plugin-no-snapshot-testing

Weekly Downloads

26,152

Version

1.0.61

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • vicjer