MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / resolveHelperSource

Function resolveHelperSource

lib/command/list.js:32–41  ·  view source on GitHub ↗
(helper, helperName, config, testsPath)

Source from the content-addressed store, hash-verified

30}
31
32function resolveHelperSource(helper, helperName, config, testsPath) {
33 const builtin = path.join(helperDir, `${helper.constructor.name}.js`)
34 if (fs.existsSync(builtin)) return builtin
35 const requirePath = config?.helpers?.[helperName]?.require
36 if (requirePath) {
37 const resolved = path.isAbsolute(requirePath) ? requirePath : path.resolve(testsPath, requirePath)
38 if (fs.existsSync(resolved)) return resolved
39 }
40 return null
41}
42
43function findClassNode(ast) {
44 for (const node of ast.body) {

Callers 1

extractMethodDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected