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

Function formatConfigFilePaths

packages/create-wdio/src/utils.ts:855–861  ·  view source on GitHub ↗
(config: string)

Source from the content-addressed store, hash-verified

853 * @param config the initially given file path to the WDIO config file
854 */
855export async function formatConfigFilePaths(config: string) {
856 const fullPath = path.isAbsolute(config)
857 ? config
858 : path.join(process.cwd(), config)
859 const fullPathNoExtension = fullPath.substring(0, fullPath.lastIndexOf(path.extname(fullPath)))
860 return { fullPath, fullPathNoExtension }
861}
862
863export function findInConfig(config: string, type: string) {
864 let regexStr = `[\\/\\/]*[\\s]*${type}s: [\\s]*\\[([\\s]*['|"]\\w*['|"],*)*[\\s]*\\]`

Callers 2

handlerFunction · 0.85
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…