()
| 58 | * @returns {Promise<string>} |
| 59 | */ |
| 60 | export async function getEdgePath() { |
| 61 | if (process.platform === 'darwin') { |
| 62 | return '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge'; |
| 63 | } |
| 64 | if (process.platform === 'win32') { |
| 65 | return winProgramFiles('Microsoft\\Edge\\Application\\msedge.exe'); |
| 66 | } |
| 67 | const possibleLinuxPaths = ['microsoft-edge', 'microsoft-edge-stable']; |
| 68 | for (const possiblePath of possibleLinuxPaths) { |
| 69 | try { |
| 70 | return await linuxAppPath(possiblePath); |
| 71 | } catch (e) { |
| 72 | // ignore |
| 73 | } |
| 74 | } |
| 75 | throw new Error('Could not find Edge'); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * @returns {Promise<string>} |
no test coverage detected
searching dependent graphs…