| 122 | } |
| 123 | |
| 124 | export 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 | } |