resolveSelector function ✓ 100.0%
Last updated: 2026-03-01T23:25:47.083Z
Metrics
LOC: 9
Complexity: 3
Params: 3
Coverage: 100.0% (3/3 lines, 24x executed)
Signature
resolveSelector(
action: CapturedAction,
useSmartSelectors: boolean,
): : string
Source Code
function resolveSelector(
action: CapturedAction,
useSmartSelectors: boolean,
): string {
if (useSmartSelectors && action.smartSelectors?.length) {
return pickBestSelector(action.smartSelectors, action.selector);
}
return action.selector;
}
No outgoing dependencies.
No incoming dependencies.