(node: Instance)
| 4220 | export const supportsTestSelectors = true; |
| 4221 | |
| 4222 | export function findFiberRoot(node: Instance): null | FiberRoot { |
| 4223 | const stack = [node]; |
| 4224 | let index = 0; |
| 4225 | while (index < stack.length) { |
| 4226 | const current = stack[index++]; |
| 4227 | if (isContainerMarkedAsRoot(current)) { |
| 4228 | return ((getInstanceFromNodeDOMTree(current): any): FiberRoot); |
| 4229 | } |
| 4230 | stack.push(...current.children); |
| 4231 | } |
| 4232 | return null; |
| 4233 | } |
| 4234 | |
| 4235 | export function getBoundingRect(node: Instance): BoundingRect { |
| 4236 | const rect = node.getBoundingClientRect(); |
no test coverage detected