From 081b2efe995d992f849a33da5f5768999448626c Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Mon, 3 Apr 2023 18:36:15 +0200 Subject: [PATCH] refactor: fix typings --- .../src/lib/commands/collect/utils/user-flow/collect-flow.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/lib/commands/collect/utils/user-flow/collect-flow.ts b/packages/cli/src/lib/commands/collect/utils/user-flow/collect-flow.ts index a981491fd..67f14264d 100644 --- a/packages/cli/src/lib/commands/collect/utils/user-flow/collect-flow.ts +++ b/packages/cli/src/lib/commands/collect/utils/user-flow/collect-flow.ts @@ -55,8 +55,7 @@ function parseLaunchOptions(launchOptions?: LaunchOptions): LaunchOptions { headless: false, // hack for dryRun => should get fixed inside user flow in future defaultViewport: { isMobile: true, isLandscape: false, width: 800, height: 600 } - } as any; - // @TODO consider CI vs dev mode => headless, openReport, persist etc + } as LaunchOptions; const cliMode = detectCliMode(); // cli mode is "CI" or "SANDBOX" if (cliMode !== 'DEFAULT' && launchOptions) { @@ -65,5 +64,5 @@ function parseLaunchOptions(launchOptions?: LaunchOptions): LaunchOptions { (launchOptions as any).headless = headlessMode; } - return launchOptions as any; + return launchOptions; }