Merge pull request #25 from stuartlong/stuartlo/add-update-instructions

feat(log): Add instructions about updating snapshot to error message
This commit is contained in:
Gleb Bahmutov 2019-04-26 16:28:19 -04:00 committed by GitHub
commit 9670a9e90a

View file

@ -120,7 +120,7 @@ function registerCypressSnapshot () {
devToolsLog.expected = expected
delete devToolsLog.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}`)
})
}