From 829cf2bd8236899185ae243b12ee15eaf8a73419 Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Fri, 9 Sep 2022 18:38:34 +0300 Subject: [PATCH] (test) Intentionally break test to see how reporter works --- .../__snapshots__/forecast-card.test.js.snap | 19 --------------- src/__tests__/forecast-card.test.js | 23 ++++++++++--------- 2 files changed, 12 insertions(+), 30 deletions(-) delete mode 100644 src/__tests__/__snapshots__/forecast-card.test.js.snap diff --git a/src/__tests__/__snapshots__/forecast-card.test.js.snap b/src/__tests__/__snapshots__/forecast-card.test.js.snap deleted file mode 100644 index 879078e..0000000 --- a/src/__tests__/__snapshots__/forecast-card.test.js.snap +++ /dev/null @@ -1,19 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ForecastCard renders the weekly forecast for the specified location: - Array [ - "Saturday22° / 22°", - "Sunday22° / 22°", - "Monday22° / 22°", - "Tuesday20° / 20°", - "Wednesday21° / 21°", - ] - 1`] = ` -[ - "Saturday22° / 22°", - "Sunday22° / 22°", - "Monday22° / 22°", - "Tuesday20° / 20°", - "Wednesday21° / 21°", -] -`; diff --git a/src/__tests__/forecast-card.test.js b/src/__tests__/forecast-card.test.js index 084c9b6..53793b2 100644 --- a/src/__tests__/forecast-card.test.js +++ b/src/__tests__/forecast-card.test.js @@ -17,17 +17,18 @@ describe('ForecastCard', () => { return listItem.textContent; }); - expect(forecast).toMatchSnapshot(` - Array [ - "Saturday22° / 22°", - "Sunday22° / 22°", - "Monday22° / 22°", - "Tuesday20° / 20°", - "Wednesday21° / 21°", - ] - `); - }); -}); + // const expected = [ + // "Saturday22° / 22°", + // "Sunday22° / 22°", + // "Monday22° / 22°", + // "Tuesday20° / 20°", + // "Wednesday21° / 21°", + // ]; + + expect(forecast).toEqual(null); + // expect(forecast).toEqual(expect.arrayContaining( + } +)}); function renderForecast(testProps) { render();