MCPcopy Create free account
hub / github.com/Effect-TS/effect / entry

Function entry

packages/ui/devtools/test/DevTools.test.ts:99–105  ·  view source on GitHub ↗
(root: HTMLElement, name: RegExp)

Source from the content-addressed store, hash-verified

97})
98
99const entry = (root: HTMLElement, name: RegExp) => {
100 const found = HtmlLocator.queryAllByRole(root, "button", { name }).filter((
101 node
102 ) => node.classList.contains("row-button"))
103 assert.isAbove(found.length, 0, "no timeline entry named " + name)
104 return found
105}
106
107const oldest = (root: HTMLElement, name: RegExp) => entry(root, name).at(-1)!
108

Callers 3

oldestFunction · 0.70
DevTools.test.tsFile · 0.70
selectFunction · 0.70

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected