Skip to content

Commit

Permalink
put isBrowserGivenByCli on modeOptions (#4)
Browse files Browse the repository at this point in the history
* Update coreDataShape.ts

* Update ProjectLifecycleManager.ts
  • Loading branch information
alexsch01 authored Nov 3, 2024
1 parent 2f82876 commit 11bd244
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/data-context/src/data/ProjectLifecycleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class ProjectLifecycleManager {
async setInitialActiveBrowser () {
const configBrowser = this.loadedFullConfig?.defaultBrowser

if (configBrowser && !this.ctx.coreData.isBrowserGivenByCli) {
if (configBrowser && !this.ctx.modeOptions.isBrowserGivenByCli) {
if (this.ctx.isRunMode) {
this.ctx.setModeOptionsBrowser(configBrowser)

Expand Down
2 changes: 0 additions & 2 deletions packages/data-context/src/data/coreDataShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ interface CloudDataShape {

export interface CoreDataShape {
cliBrowser: string | null
isBrowserGivenByCli: boolean
cliTestingType: string | null
activeBrowser: FoundBrowser | null
machineId: Promise<string | null>
Expand Down Expand Up @@ -183,7 +182,6 @@ export function makeCoreData (modeOptions: Partial<AllModeOptions> = {}): CoreDa
return {
servers: {},
cliBrowser: modeOptions.browser ?? null,
isBrowserGivenByCli: modeOptions.isBrowserGivenByCli ?? false,
cliTestingType: modeOptions.testingType ?? null,
machineId: machineId(),
machineBrowsers: null,
Expand Down

0 comments on commit 11bd244

Please sign in to comment.