Skip to content

Commit

Permalink
website: Update pictures of reports when matchers fail (#9214)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pedrottimark committed Jan 22, 2020
1 parent 1f7857f commit 7817dcc
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/pages/en/index.js
Expand Up @@ -424,7 +424,7 @@ class Index extends React.Component {
Here are some examples:
</translate>
),
image: '/img/content/matchers/different-types.png',
image: '/img/content/matchers/toBe.png',
imageAlign: 'right',
title: <translate>Great Exceptions</translate>,
},
Expand Down
1 change: 1 addition & 0 deletions website/static/css/jest.css
Expand Up @@ -241,6 +241,7 @@
.button.landing {
margin: 4px 10px;
cursor: pointer;
text-transform: none;
}

.container .gridBlock .blockContent p.buttons-wrapper {
Expand Down
Binary file modified website/static/img/content/failedSnapshotTest.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/content/feature-mocking.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed website/static/img/content/matchers/equals.png
Binary file not shown.
Binary file removed website/static/img/content/matchers/functions.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed website/static/img/content/matchers/mocks.png
Binary file not shown.
Binary file removed website/static/img/content/matchers/snapshot.png
Binary file not shown.
Binary file added website/static/img/content/matchers/toBe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/content/matchers/toEqual.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions website/static/landing.js
Expand Up @@ -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',
},
];

Expand Down

0 comments on commit 7817dcc

Please sign in to comment.