Skip to content

Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.

test: show why the renderer left Mediabunny when the mux test fails

StaryOnedb946b96db5b
diff --git a/test/render.test.js b/test/render.test.js
index f125eaa..9f18952 100644
--- a/test/render.test.js
+++ b/test/render.test.js
@@ -40,8 +40,9 @@ async function checkVideo(name, opts, frames) {
}
test('video: default encoder, Mediabunny mux', async () => {
- const s = await checkVideo('auto.mp4', {}, 30);
- assert.match(s.mux, /^Mediabunny/);
+ const logs = []; // the renderer says why it left Mediabunny for the raw path; the failure shows it
+ const s = await checkVideo('auto.mp4', { log: m => logs.push(m) }, 30);
+ assert.match(s.mux, /^Mediabunny/, logs.join('\n'));
});
test('video: software encoder', () => checkVideo('sw.mp4', { encoder: 'sw' }, 30));
test('video: raw bitstream mux', async () => {