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

Function getMachineInfo

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

Source from the content-addressed store, hash-verified

80export { parsePlaywrightBrowsers }
81
82export const getMachineInfo = async () => {
83 const info = {
84 nodeInfo: await envinfo.helpers.getNodeInfo(),
85 osInfo: await envinfo.helpers.getOSInfo(),
86 cpuInfo: await envinfo.helpers.getCPUInfo(),
87 chromeInfo: await envinfo.helpers.getChromeInfo(),
88 edgeInfo: await envinfo.helpers.getEdgeInfo(),
89 firefoxInfo: await envinfo.helpers.getFirefoxInfo(),
90 safariInfo: await envinfo.helpers.getSafariInfo(),
91 playwrightBrowsers: await getPlaywrightBrowsers(),
92 }
93
94 output.print('***************************************')
95 for (const [key, value] of Object.entries(info)) {
96 if (Array.isArray(value)) {
97 output.print(`${key}: ${value[1]}`)
98 } else {
99 output.print(`${key}: ${JSON.stringify(value, null, ' ')}`)
100 }
101 }
102 output.print('If you need more detailed info, just run this: npx codeceptjs info')
103 output.print('***************************************')
104 return info
105}

Callers 3

run-workers.jsFile · 0.90
check.jsFile · 0.90
run.jsFile · 0.85

Calls 2

getPlaywrightBrowsersFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected