(wdioConfPath: string, params: Partial<RunCommandArguments>)
| 262 | } |
| 263 | |
| 264 | async function tsConfigPathFromConfigFile(wdioConfPath: string, params: Partial<RunCommandArguments>): Promise<string | void> { |
| 265 | try { |
| 266 | const configParser = new ConfigParser(wdioConfPath, params) |
| 267 | await configParser.initialize() |
| 268 | const { tsConfigPath } = configParser.getConfig() |
| 269 | if (tsConfigPath) { |
| 270 | return tsConfigPath |
| 271 | } |
| 272 | } catch { |
| 273 | log.debug(`Unable to parse config file. If tsConfigPath is set in ${wdioConfPath}, it will be ignored.`) |
| 274 | return |
| 275 | } |
| 276 | return |
| 277 | } |
no test coverage detected
searching dependent graphs…