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

Function executionTime

packages/vitest/src/node/reporters/junit.ts:107–112  ·  view source on GitHub ↗
(durationMS: number)

Source from the content-addressed store, hash-verified

105}
106
107function executionTime(durationMS: number) {
108 return (durationMS / 1000).toLocaleString('en-US', {
109 useGrouping: false,
110 maximumFractionDigits: 10,
111 })
112}
113
114export function getDuration(task: Task): string | undefined {
115 const duration = task.result?.duration ?? 0

Callers 2

getDurationFunction · 0.70
onTestRunEndMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected