Vitest Visual Testing

Make @uiverify/vitest (Vitest browser-mode) captures deterministic so component visual tests stop coming back "changed" without a real change (flaky diffs). Use when setting up or debugging visual tests over Vitest browser-mode component tests. Focuses only on the run-to-run variation the capturer can't neutralize from outside your app — above all live/dynamic data, the highest-value step (freeze it with static fixtures and the whole content-noise class disappears), plus the clock, infinite JS animations, and non-Math.random randomness, and the one Vitest-specific trap - capturing before the component has settled.

franciscomoretti e6d32e2 9.9 KB Updated

File contents

franciscomoretti/chat-js/tree/main/.agents/skills/vitest-visual-testing commit e6d32e2474

Frequently asked questions

npx skillmds@latest add franciscomoretti/vitest-visual-testing