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

Function getHelperListFragment

lib/command/definitions.js:25–35  ·  view source on GitHub ↗
({ hasCustomHelper, hasCustomStepsFile })

Source from the content-addressed store, hash-verified

23 */
24const getDefinitionsFileContent = ({ hasCustomHelper, hasCustomStepsFile, helperNames, supportObject, importPaths, translations }) => {
25 const getHelperListFragment = ({ hasCustomHelper, hasCustomStepsFile }) => {
26 if (hasCustomHelper && hasCustomStepsFile) {
27 return `${['ReturnType<steps_file>', 'WithTranslation<Methods>'].join(', ')}`
28 }
29
30 if (hasCustomStepsFile) {
31 return 'ReturnType<steps_file>'
32 }
33
34 return 'WithTranslation<Methods>'
35 }
36
37 const helpersListFragment = getHelperListFragment({
38 hasCustomHelper,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected