Comments (10)
Thank you! I will keep this open until I publish the reporter.
from jest-image-snapshot.
Yes! We did get a solution for this that we are using internally and will be open sourcing that HTML reporter shortly (new week or so).
It was a bummer to me that passing custom metadata is not currently supported by jest but that's something that needs to be take up with jest maintainers and I found an ugly workaround for the time being.
from jest-image-snapshot.
Awesome! Can't wait :)
I was already thinking of doing a global map of test names with the match results in the matcher and reading it in a reporter.
I opened an issue on Jest jestjs/jest#4547
from jest-image-snapshot.
Hi, I find the idea of an HTML report very interesting. Maybe with tools similar to the ones in bitbucket? Any updates on this?
from jest-image-snapshot.
@Prior99 @epeli let me give an update on this since it has been awhile:
I know I previously said I would open source a simple html reporter but I decided not too until jestjs/jest#4547 is resolved.
What we have internally is an ugly hack I don't wish to open source (think https://github.com/Hargne/jest-html-reporter but with a regex to check for a path to a png image in the failure message so we can embed that image into html).
If jestjs/jest#4547 can be resolved I can easily create an HTML reporter that could even integrate some cool diffing like what Bitbucket has if wanted. But I have not found the time to work on that jest issue. If you guys have the time and can help out with that it would be great! Otherwise it may be awhile.
from jest-image-snapshot.
I think we are thinking about different HTML reporters here. I will have a look at the issue and maybe send a pull request if I can find some time on a weekend.
from jest-image-snapshot.
@Prior99 what are you thinking of then? Do you think it should be its own feature request in another issue?
from jest-image-snapshot.
from jest-image-snapshot.
@Prior99 opened up #51 for your idea.
from jest-image-snapshot.
Closing this as I am not sure this is going to be worked on anytime soon and is really not a jest-image-snapshot
issue. Can reopen if jestjs/jest#4547 makes it in.
from jest-image-snapshot.
Related Issues (20)
- 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
- snapshot fails ignoring diff failureThreshold HOT 1
- Could customSnapshotDir be a callback?
- Clarify what "unique customSnapshotIdentifier" means when using with jest.retryTimes()
- require failureThreshold at both percentage and pixel level ? HOT 1
- snapshots are not consistent on firefox
- update rimraf dependency
- Vitest: Incorrect filename when running concurrently
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.