/** * QA360 Vitest Adapter * * Ingests Vitest test results and coverage reports into QA360. * * @see https://vitest.dev/guide/#json-output * * Supported result formats: * - test-results.json (from --reporter=json) * - coverage/coverage-final.json (from --coverage) * * NOTE: Vitest JSON format changed in v1.0+ * Old format (< v1.0): testResults[].result.state * New format (>= v1.0): testResults[].assertionResults[].status */ import { UnitTestConfig, UnitTestExecutionResult } from './unit-test-types.js'; export declare class VitestAdapter { private cwd; constructor(cwd?: string); /** * Execute Vitest tests and return results */ execute(config: UnitTestConfig): Promise; /** * Parse Vitest results into QA360 format * Supports both legacy (< v1.0) and new (>= v1.0) formats */ private parseResults; /** * Map Vitest status to QA360 status * Supports both legacy and new status values */ private mapVitestStatus; /** * Parse Vitest coverage into QA360 format */ private parseCoverage; /** * Check if coverage meets thresholds */ private checkThresholds; } /** * Create a Vitest adapter instance */ export declare function createVitestAdapter(cwd?: string): VitestAdapter;