Skip to content

Commit

Permalink
fix: correctly specify "system" field for "ConfigInput" type
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Dec 2, 2024
1 parent ab1e64c commit 0e34741
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,13 @@ export interface SetsConfigParsed {
browsers: Array<string>;
}

type PartialCommonConfig = Partial<Omit<CommonConfig, "system">> & {
system?: Partial<SystemConfig>;
};

// Only browsers desiredCapabilities are required in input config
export type ConfigInput = Partial<CommonConfig> & {
browsers: Record<string, Partial<CommonConfig> & { desiredCapabilities: WebdriverIO.Capabilities }>;
export type ConfigInput = Partial<PartialCommonConfig> & {
browsers: Record<string, PartialCommonConfig & { desiredCapabilities: WebdriverIO.Capabilities }>;
plugins?: Record<string, unknown>;
sets?: Record<string, SetsConfig>;
prepareEnvironment?: () => void | null;
Expand Down

0 comments on commit 0e34741

Please sign in to comment.