(config: string)
| 853 | * @param config the initially given file path to the WDIO config file |
| 854 | */ |
| 855 | export 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 | |
| 863 | export function findInConfig(config: string, type: string) { |
| 864 | let regexStr = `[\\/\\/]*[\\s]*${type}s: [\\s]*\\[([\\s]*['|"]\\w*['|"],*)*[\\s]*\\]` |
no outgoing calls
no test coverage detected
searching dependent graphs…