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

Function onCollected

packages/vitest/src/node/pools/rpc.ts:113–120  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

111 }
112 },
113 async onCollected(files) {
114 if (methodsOptions.collect) {
115 vitest.state.collectFiles(project, files)
116 }
117 else {
118 await vitest._testRun.collected(project, files)
119 }
120 },
121 onAfterSuiteRun(meta) {
122 vitest.coverageProvider?.onAfterSuiteRun(meta)
123 },

Callers

nothing calls this directly

Calls 2

collectedMethod · 0.80
collectFilesMethod · 0.45

Tested by

no test coverage detected