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

Function assertPath

packages/wdio-utils/src/utils.ts:15–19  ·  view source on GitHub ↗
(path?: unknown)

Source from the content-addressed store, hash-verified

13export const REG_EXP_WINDOWS_ABS_PATH = /^[A-Za-z]:\\/
14
15function assertPath(path?: unknown) {
16 if (typeof path !== 'string') {
17 throw new TypeError('Path must be a string. Received ' + JSON.stringify(path))
18 }
19}
20
21export function isAbsolute(p: string) {
22 assertPath(p)

Callers 1

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