UNPKG

fern-jest-client

Version:

Jest test reporter client for Fern platform - captures and sends test execution data to fern-reporter

32 lines 1.01 kB
/** * Jest custom reporter for Fern platform * Integrates with Jest's reporter system to capture and send test results */ import { BaseReporter, Test, TestResult } from '@jest/reporters'; import { Config } from '@jest/types'; import { FernReporterConfig } from '../types'; export declare class FernReporter extends BaseReporter { private client; private projectId; private projectName; private enabled; constructor(globalConfig: Config.GlobalConfig, options: FernReporterConfig); /** * Called when all tests have completed */ onRunComplete(contexts: Set<any>, results: any): Promise<void>; /** * Called when a test starts */ onTestStart(test: Test): void; /** * Called when a test file completes */ onTestResult(test: Test, testResult: TestResult, aggregatedResult: any): void; /** * Test API connectivity */ testConnection(): Promise<boolean>; } export default FernReporter; //# sourceMappingURL=index.d.ts.map