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

Function getTraceMap

packages/browser/src/client/tester/runner.ts:370–379  ·  view source on GitHub ↗
(file: string, sourceMaps: Map<string, any>)

Source from the content-addressed store, hash-verified

368}
369
370async function getTraceMap(file: string, sourceMaps: Map<string, any>) {
371 const result = sourceMaps.get(file) || await rpc().getBrowserFileSourceMap(file).then((map) => {
372 sourceMaps.set(file, map)
373 return map
374 })
375 if (!result) {
376 return null
377 }
378 return new DecodedMap(result as any, file)
379}
380
381async function updateTestFilesLocations(files: File[], sourceMaps: Map<string, any>) {
382 const promises = files.map(async (file) => {

Callers 1

updateTestFilesLocationsFunction · 0.85

Calls 3

rpcFunction · 0.90
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected