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

Function dynamicImport

bin/codecept.js:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48const dynamicImport = async modulePath => {
49 const resolvedPath = resolveImportModulePath(modulePath)
50 const module = await import(resolvedPath)
51 return module.default || module
52}
53
54const commandHandler = modulePath =>
55 errorHandler(async (...args) => {

Callers 3

commandHandlerFunction · 0.85
codecept.jsFile · 0.85

Calls 1

resolveImportModulePathFunction · 0.90

Tested by

no test coverage detected