MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / tsConfigPathFromConfigFile

Function tsConfigPathFromConfigFile

packages/wdio-cli/src/commands/run.ts:264–277  ·  view source on GitHub ↗
(wdioConfPath: string, params: Partial<RunCommandArguments>)

Source from the content-addressed store, hash-verified

262}
263
264async 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}

Callers 1

handlerFunction · 0.85

Calls 3

initializeMethod · 0.95
getConfigMethod · 0.95
debugMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…