Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
export
async
function
cleanup(): Promise<void> {
12
const
promises = [...listeners].map(l => l())
13
await
Promise.all(promises)
14
}
Callers
5
fixture
Function · 0.50
callFixtureCleanup
Function · 0.50
callFixtureCleanupFrom
Function · 0.50
onExit
Method · 0.50
addCleanupListeners
Method · 0.50
Calls
2
all
Method · 0.80
l
Function · 0.50
Tested by
no test coverage detected