From ad676dc1e8257fe754043c681c14df093a1cac5d Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 19 Jun 2023 20:30:18 +1200 Subject: [PATCH] docs(no-large-snapshots): mention `--ext snap` (#1373) --- docs/rules/no-large-snapshots.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/rules/no-large-snapshots.md b/docs/rules/no-large-snapshots.md index bfc371ba9..5969ba9f5 100644 --- a/docs/rules/no-large-snapshots.md +++ b/docs/rules/no-large-snapshots.md @@ -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`