feat(log): Add instructions about udpating snapshot to error message

This commit is contained in:
stuartlo 2019-04-09 13:33:46 -07:00
parent 2fbd969ab8
commit a7f44204b3

View file

@ -120,7 +120,7 @@ function registerCypressSnapshot () {
devToolsLog.expected = expected devToolsLog.expected = expected
delete devToolsLog.value delete devToolsLog.value
devToolsLog.value = value devToolsLog.value = value
throw new Error(`Snapshot difference\n${json.message}`) throw new Error(`Snapshot difference. To update, delete snapshot and rerun test.\n${json.message}`)
}) })
} }