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

Function step

packages/ui/devtools/test/DevTools.test.ts:120–128  ·  view source on GitHub ↗
(root: HTMLElement, kind: string, what?: RegExp)

Source from the content-addressed store, hash-verified

118 }))
119
120const step = (root: HTMLElement, kind: string, what?: RegExp) => {
121 const found = steps(root).find((step) => step.kind === kind && (what === undefined || what.test(step.what)))
122 assert.isDefined(
123 found,
124 "no chain step " + kind + " in " +
125 JSON.stringify(steps(root).map((step) => step.kind + ": " + step.what))
126 )
127 return found!
128}
129
130const headline = (root: HTMLElement) => text(root.querySelector(".ehead .headline"))
131const subtitle = (root: HTMLElement) => text(root.querySelector(".ehead .sub"))

Callers 3

followFunction · 0.70
DevTools.test.tsFile · 0.70
stoppedFunction · 0.70

Calls 3

stepsFunction · 0.85
findMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected