diff --git a/js/moq-boy/src/element.test.ts b/js/moq-boy/src/element.test.ts index 9264c361763..550189fd4d0 100644 --- a/js/moq-boy/src/element.test.ts +++ b/js/moq-boy/src/element.test.ts @@ -3,6 +3,9 @@ import { expect, mock, test } from "bun:test"; // The UI renders into a shadow root, which the test runner has no DOM for. mock.module("solid-js/web", () => ({ render: () => () => {} })); mock.module("./ui/element.tsx", () => ({ BoyUI: () => null })); +// Bun cannot load the blob-URL worklet import used by the audio decoder. Mock it here rather than +// relying on game.test.ts, since that mock only applies when its file happens to run first. +mock.module("../../watch/src/audio/render-worklet.ts?worklet", () => ({ default: async () => "blob:fake-render" })); const registry = new Map(); globalThis.HTMLElement = class {