Skip to content

Commit

Permalink
fix(cli): parse --browser=<name> correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Feb 10, 2024
1 parent 78156f7 commit 75be929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli/cli-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
},
browser: {
description: 'Run tests in the browser. Equivalent to --browser.enabled (default: false)',
argument: '', // allow boolean
argument: '<name>',
transform(browser) {
if (typeof browser === 'boolean')
return { enabled: browser }
Expand Down

0 comments on commit 75be929

Please sign in to comment.