Skip to content

Commit

Permalink
fix: fix ConfigInput type (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr authored Aug 8, 2024
1 parent e1a68b5 commit 8cdcd15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { SetRequired } from "type-fest";
import type { BrowserConfig } from "./browser-config";
import type { BrowserTestRunEnvOptions } from "../runner/browser-env/vite/types";
import type { Test } from "../types";
Expand Down Expand Up @@ -171,8 +170,8 @@ export interface SetsConfig {
}

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

0 comments on commit 8cdcd15

Please sign in to comment.