Skip to content
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

Missing peer @vitest/spy@2.1.3 in @vitest/mocker 2.1.3 #6775

Closed
6 tasks done
ebrpol opened this issue Oct 23, 2024 · 0 comments · Fixed by #6777
Closed
6 tasks done

Missing peer @vitest/spy@2.1.3 in @vitest/mocker 2.1.3 #6775

ebrpol opened this issue Oct 23, 2024 · 0 comments · Fixed by #6777
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@ebrpol
Copy link

ebrpol commented Oct 23, 2024

Describe the bug

@vitest/mocker 2.1.3 has a peer-dependency on @vitest/spy@2.1.3, while it also has a dependency, and devDependency on it.

This yields peer-dependency warnings when installing @vitest/mocker, for example through @vitest/browser:

└─┬ @vitest/browser 2.1.3
  └─┬ @vitest/mocker 2.1.3
    └── ✕ missing peer @vitest/spy@2.1.3
Peer dependencies that should be installed:
  @vitest/spy@2.1.3

Reproduction

pnpm i @vitest/browser

System Info

System:
    OS: Windows 11 10.0.22000
    CPU: (8) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 7.15 GB / 12.34 GB
  Binaries:
    Node: 18.20.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.6.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (128.0.2739.54)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    vite: catalog:default => 5.4.8

Used Package Manager

pnpm

Validations

sheremet-va added a commit to sheremet-va/vitest that referenced this issue Oct 23, 2024
@sheremet-va sheremet-va added p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants