UNPKG

vitest-sonar-reporter

Version:
19 lines (18 loc) 545 B
import type { Reporter, Vitest } from 'vitest/node'; type File = Parameters<NonNullable<Reporter['onFinished']>>[0][number]; 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; } export {};