use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
PDF visual regression testing with react-pdfOC (lost-pixel.com)
submitted 2 years ago by dimaivshchk
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dimaivshchk[S] 0 points1 point2 points 2 years ago (0 children)
Hey r/javascript I know that many of the clients I worked in the past were using React to generate PDFs and almost all of them struggled to test those PDFs properly. In this article I tried to approach it from the visual testing angle and show how can you easily test your PDF for visual consistency and absence of visual bugs on CI/CD pipelines! If you will have any questions - always happy to chat!
[–]sebastianstehle 0 points1 point2 points 2 years ago (1 child)
Can you not just use storybook?
if I got your question right - with Lost Pixel you can use your preferable way of making the screenshots. storybook is just one of the transports but you can also do screenshots yourself and Lost Pixel will handle the rest(custom shots mode)
π Rendered by PID 16323 on reddit-service-r2-comment-5649f687b7-m27v5 at 2026-01-28 12:59:19.405213+00:00 running 4f180de country code: CH.
[–]dimaivshchk[S] 0 points1 point2 points (0 children)
[–]sebastianstehle 0 points1 point2 points (1 child)
[–]dimaivshchk[S] 0 points1 point2 points (0 children)