MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / projectForTestFile

Function projectForTestFile

web/src/test/vitestProjects.ts:204–209  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

202 * in `.test.ts` and the node project excludes them.
203 */
204export 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. */
212interface ProjectCountReporterContext {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected