()
| 167 | } |
| 168 | |
| 169 | export function downloadedChromeBinaryPath() { |
| 170 | const arch = os.arch() === 'arm64' ? 'arm64' : 'x64'; |
| 171 | const paths = { |
| 172 | linux: path.join('chrome-linux', 'chrome-linux64', 'chrome'), |
| 173 | darwin: path.join( |
| 174 | `chrome-mac-${arch}`, |
| 175 | `chrome-mac-${arch}`, |
| 176 | 'Google Chrome for Testing.app', |
| 177 | 'Contents', |
| 178 | 'MacOS', |
| 179 | 'Google Chrome for Testing', |
| 180 | ), |
| 181 | win32: path.join('chrome-win', 'chrome-win64', 'chrome.exe'), |
| 182 | }; |
| 183 | return path.join(devToolsThirdPartyPath(), 'chrome', paths[os.platform()]); |
| 184 | } |
no test coverage detected