MCPcopy
hub / github.com/jestjs/jest / createOutsideJestVmPath

Function createOutsideJestVmPath

packages/jest-runtime/src/helpers.ts:16–17  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

14// String manipulation is easier here, fileURLToPath is only in newer Nodes,
15// plus setting non-standard protocols on URL objects is difficult.
16export const createOutsideJestVmPath = (path: string): string =>
17 `${OUTSIDE_JEST_VM_PROTOCOL}//${encodeURIComponent(path)}`;
18export const decodePossibleOutsideJestVmPath = (
19 outsideJestVmPath: string,
20): string | undefined => {

Callers 2

resolveImplMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected