(error?: Error)
| 195 | }); |
| 196 | |
| 197 | function onDone(error?: Error) { |
| 198 | cleanup(); |
| 199 | reject( |
| 200 | new Error( |
| 201 | [ |
| 202 | 'Failed to launch browser!' + (error ? ' ' + error.message : ''), |
| 203 | stderr, |
| 204 | '', |
| 205 | 'TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md', |
| 206 | '', |
| 207 | ].join('\n'), |
| 208 | ), |
| 209 | ); |
| 210 | } |
| 211 | |
| 212 | function onLine(line: string) { |
| 213 | stderr += line + '\n'; |
no test coverage detected