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

Function commandHandlerWithProperty

bin/codecept.js:60–64  ·  view source on GitHub ↗
(modulePath, property)

Source from the content-addressed store, hash-verified

58 })
59
60const commandHandlerWithProperty = (modulePath, property) =>
61 errorHandler(async (...args) => {
62 const module = await dynamicImport(modulePath)
63 return module[property](...args)
64 })
65
66if (process.versions.node && process.versions.node.split('.') && process.versions.node.split('.')[0] < 12) {
67 error('NodeJS >= 12 is required to run.')

Callers 1

codecept.jsFile · 0.85

Calls 2

errorHandlerFunction · 0.85
dynamicImportFunction · 0.85

Tested by

no test coverage detected