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

Function findConfigFile

lib/command/utils.js:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124export const findConfigFile = testsPath => {
125 const extensions = ['js', 'ts']
126 for (const ext of extensions) {
127 const configFile = path.join(testsPath, `codecept.conf.${ext}`)
128 if (fileExists(configFile)) {
129 return configFile
130 }
131 }
132 return null
133}

Callers 1

init.jsFile · 0.90

Calls 1

fileExistsFunction · 0.90

Tested by

no test coverage detected