UNPKG

vitest-sonar-reporter

Version:
17 lines (16 loc) 463 B
import type { Reporter, File, Vitest } from 'vitest'; export interface SonarReporterOptions { outputFile: string; silent?: boolean; onWritePath: (path: string) => string; } /** * Reporter used by `vitest` */ export default class SonarReporter implements Reporter { ctx: Vitest; options: SonarReporterOptions; constructor(options?: Partial<SonarReporterOptions>); onInit(ctx: Vitest): void; onFinished(rawFiles?: File[]): void; }