MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / resolveAxePathFromPath

Function resolveAxePathFromPath

src/utils/axe-helpers.ts:95–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95function resolveAxePathFromPath(): string | null {
96 const pathValue = process.env.PATH ?? '';
97 const entries = pathValue.split(delimiter).filter(Boolean);
98 for (const entry of entries) {
99 const candidate = join(entry, 'axe');
100 if (isExecutable(candidate)) {
101 return candidate;
102 }
103 }
104 return null;
105}
106
107export function resolveAxeBinary(): AxeBinary | null {
108 const configPath = resolveAxePathFromConfig();

Callers 1

resolveAxeBinaryFunction · 0.85

Calls 1

isExecutableFunction · 0.70

Tested by

no test coverage detected