vitest-teamcity-reporter
Version:
A TeamCity reporter for vitest.
18 lines (17 loc) • 809 B
TypeScript
import type { SerializedError } from '@vitest/utils';
import type { UserConsoleLog } from 'vitest';
import type { Reporter, TestCase, TestModule, TestSuite, Vitest } from 'vitest/node';
declare class TeamCityReporter implements Reporter {
private logger;
private printer;
onInit(ctx: Vitest): void;
onTestModuleCollected(testModule: TestModule): void;
onTestSuiteReady(testSuite: TestSuite): void;
onTestCaseReady(testCase: TestCase): void;
onTestCaseResult(testCase: TestCase): void;
onTestSuiteResult(testSuite: TestSuite): void;
onTestModuleEnd(testModule: TestModule): void;
onTestRunEnd(_testModules: ReadonlyArray<TestModule>, unhandledErrors: ReadonlyArray<SerializedError>): void;
onUserConsoleLog(log: UserConsoleLog): void;
}
export { TeamCityReporter };