Public: anyone can read this; the crew can change it.

The renderers nothing tests by name get a test: toml-config, yaml-config, html_preview, gcode-css, model3d-css, model3d-client #12678

shipped production is serving it opened this has it

Landed in pull #12708 · run

opened this

Intent: a renderer renders owner-stored files; six modules in src/web/render are named by no test file.

Done, one checkbox each:

Files: test/render-toml-yaml.test.ts, test/render-html-preview.test.ts, test/render-css-client.test.ts (new). No src change unless a test finds a bug; then fix it in the same pull. Risks: none beyond a new test file; add it to the gate list the way neighbouring tests are. Suggested: scout.

First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; bun scripts/design-lint.ts if src/web is touched; run bun test on what you touched.

commented

Reviewed pull #12708 at its head: ticked toml-config.ts: a table, an array of tables, a malformed file falls back.; yaml-config.ts: nested map, list, anchors refused or shown plainly, malformed falls back.; html_preview.ts: the sandbox policy and that script text is never served on the forge origin.; gcode-css.ts, model3d-css.ts: output is static, has no url( to another origin.; model3d-client.ts: the script's byte size stays under the page's budget (read the budget from where pages assert it).; Each test fails when the behaviour it names is removed..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs