extractTransferOptions function infrastructure ✓ 100.0%

Last updated: 2026-03-04T23:21:38.388Z

Metrics

LOC: 16 Complexity: 4 Params: 2 Coverage: 100.0% (5/5 lines, 4x executed)

Signature

extractTransferOptions( wrapper: HTMLElement, ): : Array<{ value: string; text: string }> | undefined

Source Code

function extractTransferOptions(
  wrapper: HTMLElement,
): Array<{ value: string; text: string }> | undefined {
  const items = wrapper.querySelectorAll<HTMLElement>(
    ".ant-transfer-list:first-child .ant-transfer-list-content-item-text",
  );

  const opts = Array.from(items)
    .map((item) => ({
      value: item.textContent?.trim() ?? "",
      text: item.textContent?.trim() ?? "",
    }))
    .filter((o) => o.text);

  return opts.length > 0 ? opts : undefined;
}

No outgoing dependencies.

Impact (Incoming)

graph LR extractTransferOptions["extractTransferOptions"] buildField["buildField"] buildField -->|calls| extractTransferOptions style extractTransferOptions fill:#dbeafe,stroke:#2563eb,stroke-width:2px click extractTransferOptions "46ade5fc61c11f65.html" click buildField "34f7e64df4272873.html"
SourceType
buildField calls