Skip to content

Commit

Permalink
docs(no-large-snapshots): mention --ext snap (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 19, 2023
1 parent 197e986 commit ad676dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-large-snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ module.exports = {
};
```

In order to check external snapshots, you must also have `eslint` check files
with the `.snap` extension by either passing `--ext snap` on the command line or
by explicitly specifying `.snap` in `overrides`.

## Rule details

This rule looks at all Jest inline and external snapshots (files with `.snap`
Expand Down

0 comments on commit ad676dc

Please sign in to comment.