API reference › @evolu/common › Worker › testCreateBroadcastChannel
function testCreateBroadcastChannel<Input, Output = Input>(
name: string,
): TestBroadcastChannel<Input, Output>;
Defined in: packages/common/src/Worker.ts:664
Creates an in-memory BroadcastChannel for testing.
Like a native channel, it structured-clones each message, so posting a value that cannot be cloned throws.