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

Function cleanup

packages/vitest/src/runtime/cleanup.ts:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11export async function cleanup(): Promise<void> {
12 const promises = [...listeners].map(l => l())
13 await Promise.all(promises)
14}

Callers 5

fixtureFunction · 0.50
callFixtureCleanupFunction · 0.50
callFixtureCleanupFromFunction · 0.50
onExitMethod · 0.50
addCleanupListenersMethod · 0.50

Calls 2

allMethod · 0.80
lFunction · 0.50

Tested by

no test coverage detected