You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, browser and public-facing API share the same web socket reporter. We should limit public usage and move browser methods into their own reporter so it's easier to manage and not break public API.
Suggested solution
Move browser methods from packages/vitest/src/api/setup.ts into their own reporter (or better just as create a separate rpc).
@userquin I would recommend doing this. We have a workaround with browserPromise, but in fact, we can just use a regular RPC. Here is the line that setups a WebSocket:
Clear and concise description of the problem
Currently, browser and public-facing API share the same web socket reporter. We should limit public usage and move browser methods into their own reporter so it's easier to manage and not break public API.
Suggested solution
Move browser methods from
packages/vitest/src/api/setup.ts
into their own reporter (or better just as create a separate rpc).Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: