Skip to content

Commit

Permalink
Output created snapshot when using --ci option (#3693)
Browse files Browse the repository at this point in the history
  • Loading branch information
lstkz authored and cpojer committed Aug 24, 2017
1 parent b6c68d3 commit 93aaf54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-snapshot/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const toMatchSnapshot = function(received: any, testName?: string) {
`New snapshot was ${RECEIVED_COLOR('not written')}. The update flag ` +
`must be explicitly passed to write a new snapshot.\n\n` +
`This is likely because this test is run in a continuous integration ` +
`(CI) environment in which snapshots are not written by default.`;
`(CI) environment in which snapshots are not written by default.\n\n` +
`${RECEIVED_COLOR('Received value')}` +
`${actual}`;
} else {
expected = (expected || '').trim();
actual = (actual || '').trim();
Expand Down

0 comments on commit 93aaf54

Please sign in to comment.