~/talk

Screenshot testing with ViteShot

Talkat React Finland 2021 · 2021-08-30..09-03· [testing, web-performance]
slides:none on file

ViteShot claims to generate component screenshots in seconds by bundling with Vite/esbuild and driving browsers via Playwright/Chromium. Example runs show startup around 6 seconds and often under 1s per screenshot once chrome is up. It supports multiple frameworks, viewport variants, async beforeScreenshot hooks, CI-friendly runs with GitHub Actions or git-lfs and integrations for diffs and uploads, and it produces real image diffs from PNGs rather than HTML-only snapshots.

AI-written summary · about

  1. 0:00Intro
  2. 2:01Screenshot generation
  3. 2:50Screenshots are complex
  4. 3:52What is Storybook
  5. 6:10Should you use Storybook
  6. 6:43ViteShot
  7. 8:21CSS
  8. 8:44Typescript
  9. 9:48Frameworks
  10. 10:06ViteShot setup
  11. 10:38Next steps
  12. 11:45GitHub diff
  13. 12:04Alternatives
  14. 13:06React Preview
  15. 14:25Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.