-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Browser: Simple TypeScript test appearing+running in CLI mode but not Browser mode #3286
Comments
I think I have the same problem. The browser window opens but the network shows a hanging request for |
@tpluscode I actually had that problem originally. But I found a workaround. See #3124 (comment). |
Thanks! |
Now the vitest UI loads but I get |
By experimenting blindly with the Then however, I sometimes get an error like:
|
Should be fixed in next 0.31.0 release, check |
This is similar to my experience; removing the .vite folder does not seem to fix the issue either. If I run Using vitest 0.33.0 |
This should be fixed now. |
Describe the bug
I have a simple TypeScript project with a single test file. The test file has only one test. When I run
vitest
in normal CLI mode the test is successfully run. When I runvitest --browser "chrome"
the browser and vitest UI are launched but no tests are run.Reproduction
https://github.com/frank-weindel/vitest-3286-browser-typescript
npm install
npm start
to see example app working.npm run test
to see test foradd()
method running successfullynpm run test:browser
to see Chrome browser + Vitest UI launching but no tests are run.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: