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

Function writeFile

scripts/bidi/utils.ts:16–21  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

14 * @param content content of file
15 */
16export async function writeFile (filePath: string, content: string) {
17 return fs.writeFile(
18 filePath,
19 GENERATED_FILE_COMMENT + '\n\n' + content.replace(/\r\n/g, '\n')
20 )
21}
22
23export function findGroupByName (ast: Assignment[], name: string): Group | undefined {
24 return ast.find((a: Assignment): a is Group => a.Type === 'group' && a.Name === name)

Callers 1

index.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…