MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / withPatch

Function withPatch

packages/sdk/src/session.dispatch.test.ts:30–35  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

28`.trim();
29
30async function withPatch(html: string): Promise<{ comp: Composition; events: PatchEvent[] }> {
31 const comp = await openComposition(html);
32 const events: PatchEvent[] = [];
33 comp.on("patch", (e) => events.push(e));
34 return { comp, events };
35}
36
37function expectGsapScriptPatch(id: string, events: PatchEvent[]): void {
38 expect(typeof id).toBe("string");

Callers 1

Calls 2

openCompositionFunction · 0.85
onMethod · 0.65

Tested by

no test coverage detected