Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit a7f4420

Browse files
committed
feat(log): Add instructions about udpating snapshot to error message
1 parent 2fbd969 commit a7f4420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function registerCypressSnapshot () {
120120
devToolsLog.expected = expected
121121
delete devToolsLog.value
122122
devToolsLog.value = value
123-
throw new Error(`Snapshot difference\n${json.message}`)
123+
throw new Error(`Snapshot difference. To update, delete snapshot and rerun test.\n${json.message}`)
124124
})
125125
}
126126

0 commit comments

Comments
 (0)