vitest-dev / vitest-dev/vitest

Browser module mocking with `isolate: false`

Open
#8,933 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat: browser p3-minor-bug
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Describe the bug

It seems like there is an incompatibility with the module mocking (one test mocks, another imports the original)

Reproduction

https://github.com/vitest-dev/vitest/pull/8932

System Info
Any
Used Package Manager

pnpm

Validations

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 reproduction linked in pull request #8932 and examine the browser module-mocking behavior when isolate: false. Confirm the failure where one test mocks a module while another imports the original, then verify that both test cases behave independently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.