(relativePath: string)
| 202 | * in `.test.ts` and the node project excludes them. |
| 203 | */ |
| 204 | export function projectForTestFile(relativePath: string): string | null { |
| 205 | if (relativePath.endsWith('.svelte.test.ts')) return 'jsdom'; |
| 206 | if (relativePath.endsWith('.idb.test.ts')) return 'idb'; |
| 207 | if (relativePath.endsWith('.test.ts')) return 'node'; |
| 208 | return null; |
| 209 | } |
| 210 | |
| 211 | /** The subset of vitest's reporter context this reporter reads. */ |
| 212 | interface ProjectCountReporterContext { |
no outgoing calls
no test coverage detected