| 31 | } |
| 32 | |
| 33 | async function getOsBrowsers() { |
| 34 | const chromeInfo = await envinfo.helpers.getChromeInfo() |
| 35 | const edgeInfo = await envinfo.helpers.getEdgeInfo() |
| 36 | const firefoxInfo = await envinfo.helpers.getFirefoxInfo() |
| 37 | const safariInfo = await envinfo.helpers.getSafariInfo() |
| 38 | |
| 39 | return [ |
| 40 | `chrome: ${chromeInfo ? chromeInfo[1] : 'not installed'}`, |
| 41 | `edge: ${edgeInfo ? edgeInfo[1] : 'not installed'}`, |
| 42 | `firefox: ${firefoxInfo ? firefoxInfo[1] : 'not installed'}`, |
| 43 | `safari: ${safariInfo ? safariInfo[1] : 'not installed'}`, |
| 44 | ].join(', ') |
| 45 | } |
| 46 | |
| 47 | export default async function (path) { |
| 48 | const testsPath = getTestRoot(path) |