From 5fa8dd4f7fe2bdfe01822df1396e523a561551e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Sentkiewicz?= Date: Tue, 30 May 2017 19:33:24 +0200 Subject: [PATCH] Output created snapshot when using --ci option --- packages/jest-snapshot/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jest-snapshot/src/index.js b/packages/jest-snapshot/src/index.js index 37a80f2bbac3..5f331102ae92 100644 --- a/packages/jest-snapshot/src/index.js +++ b/packages/jest-snapshot/src/index.js @@ -83,7 +83,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();