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

Function normalizeCwd

test/cli/test/reporters/reporters.test.ts:360–362  ·  view source on GitHub ↗

* Ensure environment and OS specific paths are consistent in snapshots

(text: string)

Source from the content-addressed store, hash-verified

358 * Ensure environment and OS specific paths are consistent in snapshots
359 */
360function normalizeCwd(text: string) {
361 return text.replace(normalize(process.cwd()), '<process-cwd>')
362}

Callers 1

reporters.test.tsFile · 0.85

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected