@knapsack-pro/core
Version:
Knapsack Pro Core library splits tests across CI nodes and makes sure that tests will run in optimal time on each CI node. This library gives core features like communication with KnapsackPro.com API. This library is a dependency for other projects specif
16 lines (15 loc) • 778 B
TypeScript
import { CIProviderBase } from '../ci-providers/index.js';
export declare const detectCI: () => typeof CIProviderBase;
export declare const isCI: () => boolean;
export type CIProviderMethod = 'ciNodeTotal' | 'ciNodeIndex' | 'ciNodeBuildId' | 'ciNodeRetryCount' | 'commitHash' | 'branch' | 'userSeat' | 'fixedQueueSplit';
export declare class CIEnvConfig {
static get ciNodeTotal(): string | undefined;
static get ciNodeIndex(): string | undefined;
static get ciNodeBuildId(): string | undefined;
static get ciNodeRetryCount(): string | undefined;
static get commitHash(): string | undefined;
static get branch(): string | undefined;
static get userSeat(): string | undefined;
static get fixedQueueSplit(): boolean;
private static ciEnvFor;
}