Skip to content

Commit 1790c71

Browse files
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

0 commit comments

Comments
 (0)