wxt-dev / wxt-dev/wxt

Can wxt/testing support vitest browser mode?

Open
#1,724 0 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.