-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
__vitest_browser_runner__.runTests is not a function when browser mode x customzied root #7807
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
Comments
Can you provide something more realistic? For example, should |
Sure. In realistic, the vitest was called in a tool in node_modules. So basically vitest is a deep dependency. And the project itself could have no direct vitest dep or another vitest instance.
And it works always without browser mode. as the |
Okay, I misunderstood the assumption then. In that case, I think users cannot have auto-completion of |
I see. In this aspect, there could be another vitest instance in Anyway, I've updated the reproduction this time there is a vitest instance in |
Ah sorry, my question about auto-completion was just a side question to understand your use case better overall. (And not about judging intended Vitest behaivor per-se.) |
Describe the bug
when the root is specified to an outside dir x browser mode
https://github.com/Jinjiang/reproductions/tree/vitest-browser-20250408
(not sure whether it's same to #6674)
Reproduction
https://github.com/Jinjiang/reproductions/tree/vitest-browser-20250408
error:
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: