diff --git a/CHANGELOG.md b/CHANGELOG.md index 783ad7cbfd6a..0452d4505145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Chore & Maintenance +- `[website]` Update pictures of reports when matchers fail ([#9214](https://github.com/facebook/jest/pull/9214)) + ### Performance ## 25.1.0 diff --git a/website/pages/en/index.js b/website/pages/en/index.js index d7d1e789c599..b455d7e869a6 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -424,7 +424,7 @@ class Index extends React.Component { Here are some examples: ), - image: '/img/content/matchers/different-types.png', + image: '/img/content/matchers/toBe.png', imageAlign: 'right', title: Great Exceptions, }, diff --git a/website/static/css/jest.css b/website/static/css/jest.css index 8ebda323c280..477e55ea67fc 100644 --- a/website/static/css/jest.css +++ b/website/static/css/jest.css @@ -241,6 +241,7 @@ .button.landing { margin: 4px 10px; cursor: pointer; + text-transform: none; } .container .gridBlock .blockContent p.buttons-wrapper { diff --git a/website/static/img/content/failedSnapshotTest.png b/website/static/img/content/failedSnapshotTest.png index fd4a3dc12eb4..f89acea8ac3d 100644 Binary files a/website/static/img/content/failedSnapshotTest.png and b/website/static/img/content/failedSnapshotTest.png differ diff --git a/website/static/img/content/feature-mocking.png b/website/static/img/content/feature-mocking.png index 3ba1ff4c5949..b32d4dca35f7 100644 Binary files a/website/static/img/content/feature-mocking.png and b/website/static/img/content/feature-mocking.png differ diff --git a/website/static/img/content/matchers/different-types.png b/website/static/img/content/matchers/different-types.png deleted file mode 100644 index fe34f6f10ca8..000000000000 Binary files a/website/static/img/content/matchers/different-types.png and /dev/null differ diff --git a/website/static/img/content/matchers/equals.png b/website/static/img/content/matchers/equals.png deleted file mode 100644 index 7f4507fa12e2..000000000000 Binary files a/website/static/img/content/matchers/equals.png and /dev/null differ diff --git a/website/static/img/content/matchers/functions.png b/website/static/img/content/matchers/functions.png deleted file mode 100644 index 3a91599c4157..000000000000 Binary files a/website/static/img/content/matchers/functions.png and /dev/null differ diff --git a/website/static/img/content/matchers/inline-snapshot.png b/website/static/img/content/matchers/inline-snapshot.png deleted file mode 100644 index 1ddd2395f4a5..000000000000 Binary files a/website/static/img/content/matchers/inline-snapshot.png and /dev/null differ diff --git a/website/static/img/content/matchers/missing-properties.png b/website/static/img/content/matchers/missing-properties.png deleted file mode 100644 index 727d8d67c5f4..000000000000 Binary files a/website/static/img/content/matchers/missing-properties.png and /dev/null differ diff --git a/website/static/img/content/matchers/mocks.png b/website/static/img/content/matchers/mocks.png deleted file mode 100644 index 895b8693737a..000000000000 Binary files a/website/static/img/content/matchers/mocks.png and /dev/null differ diff --git a/website/static/img/content/matchers/snapshot.png b/website/static/img/content/matchers/snapshot.png deleted file mode 100644 index db241a212399..000000000000 Binary files a/website/static/img/content/matchers/snapshot.png and /dev/null differ diff --git a/website/static/img/content/matchers/toBe.png b/website/static/img/content/matchers/toBe.png new file mode 100644 index 000000000000..e08bface2def Binary files /dev/null and b/website/static/img/content/matchers/toBe.png differ diff --git a/website/static/img/content/matchers/toBeCloseTo.png b/website/static/img/content/matchers/toBeCloseTo.png new file mode 100644 index 000000000000..93402fbbb29e Binary files /dev/null and b/website/static/img/content/matchers/toBeCloseTo.png differ diff --git a/website/static/img/content/matchers/toEqual.png b/website/static/img/content/matchers/toEqual.png new file mode 100644 index 000000000000..4465fd50dd14 Binary files /dev/null and b/website/static/img/content/matchers/toEqual.png differ diff --git a/website/static/img/content/matchers/toHaveProperty.png b/website/static/img/content/matchers/toHaveProperty.png new file mode 100644 index 000000000000..ed647981fa04 Binary files /dev/null and b/website/static/img/content/matchers/toHaveProperty.png differ diff --git a/website/static/img/content/matchers/toMatchSnapshot.png b/website/static/img/content/matchers/toMatchSnapshot.png new file mode 100644 index 000000000000..7ba4d211f450 Binary files /dev/null and b/website/static/img/content/matchers/toMatchSnapshot.png differ diff --git a/website/static/img/content/matchers/toStrictEqual.png b/website/static/img/content/matchers/toStrictEqual.png new file mode 100644 index 000000000000..980ce4ed06bb Binary files /dev/null and b/website/static/img/content/matchers/toStrictEqual.png differ diff --git a/website/static/img/content/matchers/toThrowError.png b/website/static/img/content/matchers/toThrowError.png new file mode 100644 index 000000000000..86fdd4ac9de1 Binary files /dev/null and b/website/static/img/content/matchers/toThrowError.png differ diff --git a/website/static/landing.js b/website/static/landing.js index 4cfdc9e62593..d5fb8742bb2f 100644 --- a/website/static/landing.js +++ b/website/static/landing.js @@ -139,32 +139,32 @@ document.addEventListener('DOMContentLoaded', () => { const buttons = [ { - title: 'Equals', - url: '/img/content/matchers/equals.png', + title: 'toBe', + url: '/img/content/matchers/toBe.png', }, { - title: 'Mocks', - url: '/img/content/matchers/mocks.png', + title: 'toBeCloseTo', + url: '/img/content/matchers/toBeCloseTo.png', }, { - title: 'Types', - url: '/img/content/matchers/different-types.png', + title: 'toEqual', + url: '/img/content/matchers/toEqual.png', }, { - title: 'Properties', - url: '/img/content/matchers/missing-properties.png', + title: 'toStrictEqual', + url: '/img/content/matchers/toStrictEqual.png', }, { - title: 'Snapshots', - url: '/img/content/matchers/snapshot.png', + title: 'toHaveProperty', + url: '/img/content/matchers/toHaveProperty.png', }, { - title: 'Inline Snapshots', - url: '/img/content/matchers/inline-snapshot.png', + title: 'toMatchSnapshot', + url: '/img/content/matchers/toMatchSnapshot.png', }, { - title: 'Functions', - url: '/img/content/matchers/functions.png', + title: 'toThrowError', + url: '/img/content/matchers/toThrowError.png', }, ];