Add init command for browser tests #5793
Labels
feat: browser
Issues and PRs related to the browser runner
p2-nice-to-have
Not breaking anything but nice to have (priority)
Clear and concise description of the problem
Currently, enabling browser mode is not a very straightforward process. As a user who just wants to try it, I need to:
browser
in the configvitest
, see@vitest/browser
is not installed@vitest/browser
webdriverio
is not installedwebdriverio
is, install itvitest
, see I forgot the browser nameSuggested solution
vitest init-browser-mode
(name TBD) command that asks what provider should be installed and what browser, then it scaffolds files to enable the browser mode integration:a. installs the
@vitest/browser
+ provider package + adds@vitest/browser/providers/{name}
totsconfig
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: