({ hasCustomHelper, hasCustomStepsFile })
| 23 | */ |
| 24 | const 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, |
no outgoing calls
no test coverage detected