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

Function handler

test/core/test/task-collector.test.ts:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 fn: () => void,
34 ) {
35 const handler = async () => {
36 flag = false
37 await fn()
38 assert(flag)
39 }
40 TestRunner.getCurrentSuite().task(name, { ...this, handler })
41 })
42

Callers

nothing calls this directly

Calls 2

assertFunction · 0.90
fnFunction · 0.70

Tested by

no test coverage detected