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

Function getTestFiles

packages/vitest/src/api/setup.ts:177–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 return ctx.state.getUnhandledErrors()
176 },
177 async getTestFiles() {
178 const spec = await ctx.globTestSpecifications()
179 return spec.map(spec => [
180 {
181 name: spec.project.config.name,
182 root: spec.project.config.root,
183 },
184 spec.moduleId,
185 { pool: spec.pool },
186 ])
187 },
188 },
189 {
190 post: msg => ws.send(msg),

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected