findAntName function infrastructure exported ✓ 100.0%
Last updated: 2026-03-04T23:21:38.390Z
Metrics
LOC: 6
Complexity: 2
Params: 1
Coverage: 100.0% (1/1 lines, 0x executed)
Signature
findAntName(wrapper: HTMLElement): : string | undefined
Summary
Extracts the name from Ant Design's inner control.
Source Code
export function findAntName(wrapper: HTMLElement): string | undefined {
const input = wrapper.querySelector<HTMLInputElement | HTMLTextAreaElement>(
"input, textarea",
);
return input?.name || undefined;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| matches | uses |
| buildField | calls |
| matches | uses |
| buildField | calls |