fix(test): avoid base-to-string in nodes-media e2e logs

This commit is contained in:
Peter Steinberger
2026-02-15 00:10:19 +00:00
parent a11aecc3c1
commit 4de879a6c5

View File

@@ -20,6 +20,14 @@ const IOS_NODE = {
connected: true,
} as const;
function getFirstRuntimeLogLine(): string {
const value = runtime.log.mock.calls[0]?.[0];
if (typeof value !== "string") {
throw new Error(`expected runtime.log first arg to be string, got ${typeof value}`);
}
return value;
}
function mockCameraGateway(
command: "camera.snap" | "camera.clip",
payload: Record<string, unknown>,