Skip to content

Commit

Permalink
name required
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Mar 27, 2023
1 parent d39f51d commit 1f4e641
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const coverageConfigDefaults: ResolvedCoverageOptions = {
export const browserConfigDefaults = {
enabled: false,
headless: isCI,
name: 'chrome',
} as const

export const fakeTimersDefaults = {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function startVitest(

// running "vitest --browser"
if (typeof options.browser === 'boolean')
options.browser = { enabled: options.browser, name: '' }
options.browser = { enabled: options.browser, name: 'chrome' }

// running "vitest --browser=chrome"
if (typeof options.browser === 'string')
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/types/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface BrowserConfigOptions {
/**
* Name of the browser
*/
name?: string
name: string

/**
* browser provider
Expand Down

0 comments on commit 1f4e641

Please sign in to comment.