Skip to content

Commit

Permalink
refactor: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Apr 3, 2023
1 parent 4f31557 commit 081b2ef
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -65,5 +64,5 @@ function parseLaunchOptions(launchOptions?: LaunchOptions): LaunchOptions {
(launchOptions as any).headless = headlessMode;
}

return launchOptions as any;
return launchOptions;
}

0 comments on commit 081b2ef

Please sign in to comment.