MCPcopy Index your code
hub / github.com/heygen-com/hyperframes / makeRoot

Function makeRoot

packages/core/src/runtime/init.test.ts:1648–1657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1646 // marker `data-hf-autostamped` distinguishes them; these tests pin both halves.
1647 describe("applyClipLayout: runtime-stamped clips stay in document flow", () => {
1648 const makeRoot = () => {
1649 const root = document.createElement("div");
1650 root.setAttribute("data-composition-id", "main");
1651 root.setAttribute("data-root", "true");
1652 root.setAttribute("data-start", "0");
1653 root.setAttribute("data-width", "1920");
1654 root.setAttribute("data-height", "1080");
1655 document.body.appendChild(root);
1656 return root;
1657 };
1658
1659 // jsdom does no layout, so a static clip can report computed top "auto" or
1660 // "" inconsistently. Pin the values the anchor gate keys on so the assertion

Callers 1

init.test.tsFile · 0.85

Calls 1

setAttributeMethod · 0.65

Tested by

no test coverage detected