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

Function removeStartsWith

packages/coverage-v8/src/provider.ts:477–483  ·  view source on GitHub ↗
(filepath: string, start: string)

Source from the content-addressed store, hash-verified

475}
476
477function removeStartsWith(filepath: string, start: string) {
478 if (filepath.startsWith(start)) {
479 return filepath.slice(start.length)
480 }
481
482 return filepath
483}

Callers 2

getSourcesMethod · 0.85
convertCoverageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected