(specs: string[] | FileSpecification[], runner: VitestRunner)
| 1091 | } |
| 1092 | |
| 1093 | async function publicCollect(specs: string[] | FileSpecification[], runner: VitestRunner): Promise<File[]> { |
| 1094 | runner.trace ??= defaultTrace |
| 1095 | |
| 1096 | const paths = specs.map(f => typeof f === 'string' ? f : f.filepath) |
| 1097 | |
| 1098 | await runner.onBeforeCollect?.(paths) |
| 1099 | |
| 1100 | const files = await collectTests(specs, runner) |
| 1101 | |
| 1102 | await runner.onCollected?.(files) |
| 1103 | return files |
| 1104 | } |
| 1105 | |
| 1106 | export { publicCollect as collectTests } |
nothing calls this directly
no test coverage detected