Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for vitest browser tests #3282

Open
smcenlly opened this issue Oct 16, 2023 · 4 comments
Open

Add support for vitest browser tests #3282

smcenlly opened this issue Oct 16, 2023 · 4 comments

Comments

@smcenlly
Copy link
Member

As per the title, this issue is to add support for vitest browser tests

@smcenlly
Copy link
Member Author

smcenlly commented Oct 16, 2023

Vitest browser mode is currently experimental with specific notes:

This feature is currently under development, and APIs may change in the future.

The browser mode feature of Vitest is still in its early stages of development. As such, it may not yet be fully optimized, and there may be some bugs or issues that have not yet been ironed out. It is recommended that users augment their Vitest browser experience with a standalone browser-side test runner like WebdriverIO, Cypress or Playwright.


This feature request is on hold until the experimental flag is removed, or the APIs are guaranteed to not change.

@pawk3k
Copy link

pawk3k commented Oct 17, 2023

@smcenlly just want to appreciate the work you did with Wallaby.js , gamechanger for me <3

@spookyuser
Copy link

spookyuser commented Jan 26, 2024

I've been loving the browser mode in vitest for chrome extensions but noticed that in the intro to wallaby the page says:

By default wallaby.js uses Google Chrome (headless) to run tests. If you want to use wallaby.js to run your node.js tests, or run your tests in the latest Chromium/V8 via Electron, or run your tests in PhantomJs, you will also need to specify the env configuration property.

Does this mean that by default wallaby is kind of doing what vitest's browser mode is doing anyway?

@smcenlly
Copy link
Member Author

smcenlly commented Feb 8, 2024

Does this mean that by default wallaby is kind of doing what vitest's browser mode is doing anyway?

If you are using Wallaby with Chrome, then you need to use one of the testing frameworks that we support for running in the browser. Refer to our docs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants