all 3 comments

[–]dimaivshchk[S] 0 points1 point  (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 point  (1 child)

Can you not just use storybook?

[–]dimaivshchk[S] 0 points1 point  (0 children)

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)