Skip to content

Commit 7817dcc

Browse files
authored
website: Update pictures of reports when matchers fail (jestjs#9214)
* website: Update pictures of reports when matchers fail * Update CHANGELOG.md * Move line in CHANGELOG.md * Replace name of obsolete image file in index.js
1 parent 1f7857f commit 7817dcc

20 files changed

+18
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
### Chore & Maintenance
88

9+
- `[website]` Update pictures of reports when matchers fail ([#9214](https://github.com/facebook/jest/pull/9214))
10+
911
### Performance
1012

1113
## 25.1.0

website/pages/en/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class Index extends React.Component {
424424
Here are some examples:
425425
</translate>
426426
),
427-
image: '/img/content/matchers/different-types.png',
427+
image: '/img/content/matchers/toBe.png',
428428
imageAlign: 'right',
429429
title: <translate>Great Exceptions</translate>,
430430
},

website/static/css/jest.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
.button.landing {
242242
margin: 4px 10px;
243243
cursor: pointer;
244+
text-transform: none;
244245
}
245246

246247
.container .gridBlock .blockContent p.buttons-wrapper {
Loading
38.5 KB
Loading
Binary file not shown.
-260 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-317 KB
Binary file not shown.
-230 KB
Binary file not shown.
253 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading

website/static/landing.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,32 +139,32 @@ document.addEventListener('DOMContentLoaded', () => {
139139

140140
const buttons = [
141141
{
142-
title: 'Equals',
143-
url: '/img/content/matchers/equals.png',
142+
title: 'toBe',
143+
url: '/img/content/matchers/toBe.png',
144144
},
145145
{
146-
title: 'Mocks',
147-
url: '/img/content/matchers/mocks.png',
146+
title: 'toBeCloseTo',
147+
url: '/img/content/matchers/toBeCloseTo.png',
148148
},
149149
{
150-
title: 'Types',
151-
url: '/img/content/matchers/different-types.png',
150+
title: 'toEqual',
151+
url: '/img/content/matchers/toEqual.png',
152152
},
153153
{
154-
title: 'Properties',
155-
url: '/img/content/matchers/missing-properties.png',
154+
title: 'toStrictEqual',
155+
url: '/img/content/matchers/toStrictEqual.png',
156156
},
157157
{
158-
title: 'Snapshots',
159-
url: '/img/content/matchers/snapshot.png',
158+
title: 'toHaveProperty',
159+
url: '/img/content/matchers/toHaveProperty.png',
160160
},
161161
{
162-
title: 'Inline Snapshots',
163-
url: '/img/content/matchers/inline-snapshot.png',
162+
title: 'toMatchSnapshot',
163+
url: '/img/content/matchers/toMatchSnapshot.png',
164164
},
165165
{
166-
title: 'Functions',
167-
url: '/img/content/matchers/functions.png',
166+
title: 'toThrowError',
167+
url: '/img/content/matchers/toThrowError.png',
168168
},
169169
];
170170

0 commit comments

Comments
 (0)