MCPcopy
hub / github.com/vitest-dev/vitest / slash

Function slash

packages/utils/src/helpers.ts:59–61  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

57}
58
59export function slash(path: string): string {
60 return path.replace(/\\/g, '/')
61}
62
63const postfixRE = /[?#].*$/
64export function cleanUrl(url: string): string {

Callers 13

generateContextFileFunction · 0.90
getUserEventImportFunction · 0.90
VitestWatcherClass · 0.90
isIncludedMethod · 0.90
createVitestFunction · 0.90
globFilesMethod · 0.90
filterFilesMethod · 0.90
resolveCacheDirMethod · 0.90
shardMethod · 0.90
resolveConfigFunction · 0.90
formatTestPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected