MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / byId

Method byId

packages/app/src/server-disconnected.test.ts:37–44  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

35 }
36
37 byId(id: string): FakeElement | null {
38 if (this.id === id) return this;
39 for (const child of this.children) {
40 const found = child.byId(id);
41 if (found) return found;
42 }
43 return null;
44 }
45
46 get text(): string {
47 return [this.textContent, ...this.children.map((child) => child.text)].join(" ").trim();

Callers 1

environmentFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected