Commit 1790c71
committed
test(svg-renderer): add visual-fidelity test for sanitizeSvgText
Render the cat costume SVG twice — once raw, once after sanitizeSvgText —
and assert the canvases are pixel-identical. Also pin a committed PNG
snapshot of the sanitized render so future drift in sanitizer, fonts, or
canvas/librsvg shows up as a test failure rather than a silent
regression. Pulls in node-canvas as a devDep.1 parent a6fc6e4 commit 1790c71
5 files changed
Lines changed: 443 additions & 5 deletions
File tree
- packages/scratch-svg-renderer
- test
- fixtures
- snapshots
0 commit comments