fern-jest-client
Version:
Jest test reporter client for Fern platform - captures and sends test execution data to fern-reporter
36 lines • 1.01 kB
TypeScript
/**
* Fern API client for sending test results to fern-reporter
* Similar to fern-ginkgo-client API client
*/
import { CreateTestRunInput, FernClientOptions } from '../types';
export declare class FernApiClient {
private httpClient;
private projectId;
private baseUrl;
constructor(projectId: string, options?: FernClientOptions);
/**
* Send test run data to fern-reporter
*/
report(createInput: CreateTestRunInput): Promise<void>;
/**
* Test connectivity to the Fern API
*/
ping(): Promise<boolean>;
/**
* Get the configured base URL
*/
getBaseUrl(): string;
/**
* Get the project ID
*/
getProjectId(): string;
/**
* Setup retry interceptor for failed requests
*/
private setupRetryInterceptor;
}
/**
* Factory function to create a new Fern API client
*/
export declare function createFernClient(projectId: string, options?: FernClientOptions): FernApiClient;
//# sourceMappingURL=index.d.ts.map