Skip to content

Commit

Permalink
docs(no-large-snapshots): mention --ext snap
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 4, 2023
1 parent 68184bf commit 36304e7
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 36304e7

Please sign in to comment.