MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / resolveInput

Function resolveInput

javascript/selenium-webdriver/extract_bidi_anchors.mjs:84–89  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

82 // inputs are execroot-relative and already carry that prefix — strip it so the
83 // path is not doubled. Mirrors resolveInput() in project_bidi_schema.mjs.
84 const resolveInput = (p) => {
85 if (!process.env.BAZEL_BINDIR) return resolve(p)
86 const prefix = process.env.BAZEL_BINDIR.replaceAll('\\', '/') + '/'
87 const norm = p.replaceAll('\\', '/')
88 return resolve(norm.startsWith(prefix) ? norm.slice(prefix.length) : norm)
89 }
90
91 const { values: args } = parseArgs({ options: { spec: { type: 'string' }, out: { type: 'string' } } })
92 const spec = args.spec ?? SPEC_URL

Callers 1

mainFunction · 0.70

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected