mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
The frontend replay of generated component programs runs in node, where the WASM render engine is not available. A `test-wasm` build runs the same replay in a browser page: it loads the engine on a canvas, turns on render-wasm/v1 and loads the shapes of the replayed page into the engine whenever they change, so every layout goes through it. Text edits commit through the SVG editor, as the WASM editor needs its own editing session. The page reads the programs the common tests pin, which a script writes out, and reports each one to the console. Build with `pnpm run build:test-wasm`, then open `/test-wasm.html?programs=programs.js`. Test tooling only; the benchmark is not run. AI-assisted-by: claude-opus-5-5