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

Function commandHandler

bin/codecept.js:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54const commandHandler = modulePath =>
55 errorHandler(async (...args) => {
56 const handler = await dynamicImport(modulePath)
57 return handler(...args)
58 })
59
60const commandHandlerWithProperty = (modulePath, property) =>
61 errorHandler(async (...args) => {

Callers 1

codecept.jsFile · 0.85

Calls 3

errorHandlerFunction · 0.85
dynamicImportFunction · 0.85
handlerFunction · 0.85

Tested by

no test coverage detected