()
| 80 | } |
| 81 | |
| 82 | function 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 | |
| 95 | function resolveAxePathFromPath(): string | null { |
| 96 | const pathValue = process.env.PATH ?? ''; |
no test coverage detected