()
| 227 | } |
| 228 | |
| 229 | export function detectChromePath(): string | null { |
| 230 | const platform = process.platform as 'darwin' | 'linux' | 'win32'; |
| 231 | const paths = CHROME_PATHS[platform] || []; |
| 232 | for (const p of paths) { |
| 233 | if (fs.existsSync(p)) return p; |
| 234 | } |
| 235 | return null; |
| 236 | } |
| 237 | |
| 238 | export function detectAvailableBrowsers(): {type: BrowserType; path: string}[] { |
| 239 | const browsers: {type: BrowserType; path: string}[] = []; |
no outgoing calls
no test coverage detected