Skip to content

Commit 3bb50dc

Browse files
authored
chore: use messageId in all rules (#278)
1 parent 75c9773 commit 3bb50dc

File tree

65 files changed

+801
-1300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+801
-1300
lines changed

src/rules/__tests__/__snapshots__/no-large-snapshots.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Array [
77
"lineCount": 1,
88
"lineLimit": 0,
99
},
10-
"message": "Expected to not encounter a Jest snapshot but was found with {{ lineCount }} lines long",
10+
"messageId": "noSnapshot",
1111
"node": Object {
1212
"loc": Object {
1313
"end": Object {
@@ -29,7 +29,7 @@ Array [
2929
"lineCount": 83,
3030
"lineLimit": 70,
3131
},
32-
"message": "Expected Jest snapshot to be smaller than {{ lineLimit }} lines but was {{ lineCount }} lines long",
32+
"messageId": "tooLongSnapshots",
3333
"node": Object {
3434
"loc": Object {
3535
"end": Object {
@@ -51,7 +51,7 @@ Array [
5151
"lineCount": 52,
5252
"lineLimit": 50,
5353
},
54-
"message": "Expected Jest snapshot to be smaller than {{ lineLimit }} lines but was {{ lineCount }} lines long",
54+
"messageId": "tooLongSnapshots",
5555
"node": Object {
5656
"loc": Object {
5757
"end": Object {

0 commit comments

Comments
 (0)