Skip to content

Commit 0f5b873

Browse files
ulrichstarkG-Rath
andauthored
fix(no-large-snapshots): use a far better message for when an unexpected snapshot is found (#1736)
* fix(no-large-snapshosts): fix incorrect noSnapshot message * fix(no-large-snapshots): update message --------- Co-authored-by: Gareth Jones <[email protected]>
1 parent db8172b commit 0f5b873

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rules/no-large-snapshots.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export default createRule<[RuleOptions], MessageId>({
7979
description: 'Disallow large snapshots',
8080
},
8181
messages: {
82-
noSnapshot: '`{{ lineCount }}`s should begin with lowercase',
82+
noSnapshot:
83+
'Expected to not encounter a Jest snapshot but one was found that is {{ lineCount }} lines long',
8384
tooLongSnapshots:
8485
'Expected Jest snapshot to be smaller than {{ lineLimit }} lines but was {{ lineCount }} lines long',
8586
},

0 commit comments

Comments
 (0)