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

Function resolveBundledAxePath

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

Source from the content-addressed store, hash-verified

80}
81
82function resolveBundledAxePath(): string | null {
83 const candidates = new Set<string>();
84 candidates.add(getBundledAxePath());
85 candidates.add(join(process.cwd(), 'bundled', 'axe'));
86
87 for (const candidate of candidates) {
88 if (existsSync(candidate) && isExecutable(candidate)) {
89 return candidate;
90 }
91 }
92 return null;
93}
94
95function resolveAxePathFromPath(): string | null {
96 const pathValue = process.env.PATH ?? '';

Callers 1

resolveAxeBinaryFunction · 0.85

Calls 3

getBundledAxePathFunction · 0.90
existsSyncFunction · 0.85
isExecutableFunction · 0.70

Tested by

no test coverage detected