UNPKG

@yathomasi/cypress-parallel

Version:

[![Build status](https://github.com/yathomasi/cypress-parallel/actions/workflows/build.yml/badge.svg)](https://github.com/yathomasi/cypress-parallel/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/npm/dw/@yathomasi/cypress

23 lines (22 loc) 795 B
import { CypressParallelError } from "./error"; import { UnweighedStrategy } from "./unweighed-strategy"; export interface NodeConfiguration { index: number; count: number; } export interface IParallelConfiguration { readonly useYarn?: boolean; readonly cypressRunCommand: string; readonly node: NodeConfiguration; readonly knapsack: string; readonly writeKnapsack?: string; readonly readKnapsack?: string; readonly disableKnapsackOutput: boolean; readonly unweighedStrategy: "estimate" | "distribute" | UnweighedStrategy; } export declare class NodeConfigurationParseError extends CypressParallelError { } export declare function parseAndValidateNodeConfiguration(unparsedIndex: string, unparsedCount: string): { index: number; count: number; };