()
| 75 | } |
| 76 | |
| 77 | function findFromEnv(): BrowserResult | undefined { |
| 78 | const envPath = process.env["HYPERFRAMES_BROWSER_PATH"]; |
| 79 | if (envPath && existsSync(envPath)) { |
| 80 | return { executablePath: envPath, source: "env" }; |
| 81 | } |
| 82 | return undefined; |
| 83 | } |
| 84 | |
| 85 | async function findFromCache(): Promise<CacheLookupResult> { |
| 86 | // 1) Puppeteer's managed cache — where `npx @puppeteer/browsers install |
no outgoing calls
no test coverage detected