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

Function buildNewConfigString

packages/create-wdio/src/utils.ts:888–890  ·  view source on GitHub ↗
(str: string, type: string, change: string)

Source from the content-addressed store, hash-verified

886}
887
888function buildNewConfigString(str: string, type: string, change: string) {
889 return str.replace(new RegExp(`(${type}: )('\\w*')`), `$1'${change}'`)
890}
891
892export function replaceConfig(config: string, type: string, name: string) {
893 if (type === 'framework') {

Callers 1

replaceConfigFunction · 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…