Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website: Update pictures of reports when matchers fail #9214

Merged
merged 5 commits into from Jan 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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