MCPcopy
hub / github.com/codeceptjs/CodeceptJS / getOsBrowsers

Function getOsBrowsers

lib/command/info.js:33–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33async 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
47export default async function (path) {
48 const testsPath = getTestRoot(path)

Callers 1

info.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected