UNPKG

@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

17 lines (16 loc) 810 B
import { TestFile } from './models/index.js'; import { onQueueFailureType, onQueueSuccessType, testFilesToExecuteType } from './types/index.js'; export declare class KnapsackProCore { private knapsackProAPI; private knapsackProLogger; private recordedTestFiles; private allTestFiles; private isTestSuiteGreen; constructor(clientName: string, clientVersion: string, testFilesToExecute: testFilesToExecuteType); runQueueMode(onSuccess: onQueueSuccessType, onFailure: onQueueFailureType): void; private fetchTestsFromQueue; private updateRecordedTestFiles; private finishQueueMode; private createBuildSubset; } export declare function updateRecordedTestFiles(recordedTestFiles: TestFile[], newRecordedTestFiles: TestFile[], scheduledTestFiles: TestFile[]): TestFile[];