Can wxt/testing support vitest browser mode?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request
As mentioned above, the vitest browser mode allows tests to run directly in a real browser environment without using polyfills like jsdom, which is very useful for plugins that heavily use browser APIs. I would like to know if it is possible to support this mode.
https://vitest.dev/guide/browser/
Is your feature request related to a bug?
N/A
What are the alternatives?
Manually polyfill certain APIs in vitest, such as @webext-core/messaging.
Additional context
Add any other context or screenshots about the feature request here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wxt/testing package and the linked Vitest browser mode guide to determine the integration points and required configuration. Done means wxt/testing supports running tests in a real browser environment without requiring manual API polyfills.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100