Comments (2)
Hi @satispunk, I attempted to solve the issue in #77. Could you test it with your project to see if its working for you ?
from jest-image-snapshot.
@thomasbertet Thank you for the PR which I see got merged. However, I can't seem to get it to work. I'm running jest with --watch
and when a jest-image-snapshot test fails, I get the following:
End2End::NewsScreen › it looks the same on desktop
Expected image to be the same size as the snapshot (1280x5541), but was different (1280x800).
See diff for details: /web/src/screens/News/__tests-e2e__/__image_snapshots__/__diff_output__/fullPage-desktop-diff.png
19 | fullPage: true,
20 | })
> 21 | expect(image).toMatchImageSnapshot(getImageSnapshotConfig(name))
| ^
22 | }
23 |
24 | export const fullPageImageSnapshotMobileLooksTheSame = async (
at toMatchImageSnapshot (src/utils/jest/tests.js:21:17)
Test Suites: 1 failed, 1 total
Tests: 2 failed, 2 total
Snapshots: 2 passed, 2 total
Time: 9.113s
Ran all test suites related to changed files.
Watch Usage
› Press a to run all tests.
› Press f to run only failed tests.
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press q to quit watch mode.
› Press Enter to trigger a test run.
...no mention of i
or u
. Am I missing something?
from jest-image-snapshot.
Related Issues (20)
- Inconsistent images HOT 2
- Reduce distribution size HOT 3
- Jest 28 support HOT 9
- The "path" argument must be of type string. Received undefined HOT 3
- Advice for handling visual discrepancies between Intel and Apple Silicon images HOT 11
- Screenshot name for received image HOT 9
- support jest 29 HOT 1
- TypeError: Cannot read properties of undefined (reading '_counters') HOT 1
- Please add optional peer dependency HOT 1
- [Feature Request]: would it be possible to make the inline image diff size configurable?
- failureThresholdType=percent is confusing HOT 1
- `updatePassedSnapshot` updates all snapshot regardless of jest `--updatesnapshot` value HOT 1
- Allow custom comparisonMethod
- Reporting a vulnerability HOT 1
- storeReceivedOnFailure refuses to store received images in a CI environment HOT 1
- [Feature request] Expose `onBeforeWriteToDisk` hook (to manipulate EXIF data) HOT 4
- Always generate diff snapshots HOT 1
- Scrolled to bottom element screenshot clips bottom HOT 1
- [BUG] Outdated-snapshot-reporter fails with custom snapshot ids
- Vitest currentTestName causing ENAMETOOLONG HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-image-snapshot.