Skip to content

fix: deprecate several vitest/* entry points - #9347

Merged
sheremet-va merged 9 commits into
vitest-dev:mainfrom
sheremet-va:chore/deprecate-entry-points
Jan 12, 2026
Merged

sheremet-va merged 9 commits into
vitest-dev:mainfrom
sheremet-va:chore/deprecate-entry-points

Conversation

@sheremet-va

@sheremet-va sheremet-va commented Dec 26, 2025 •

Copy link
Copy Markdown
Member

Description

In an effort to reduce the amount of chunks in Vitest's dist directory (which should make the startup time faster), I propose removing some of the entry points:

  • vitest/coverage -> use vitest/node instead
  • vitest/reporters -> use vitest/node instead
  • vitest/environments -> use vitest/runtime instead
  • vitest/snapshot -> use vitest/runtime instead
  • vitest/runners -> use vitest instead
  • vitest/suite -> use static methods on TestRunner from vitest instead: import("vitest").TestRunner.getCurrentTest()
  • vitest/mocker is removed completely, use @vitest/mocker package directly (this was published by accident at one point and never removed)
  • vitest/internal/module-runner is removed, the code is moved to __INTERNAL in vitest/runtime

@netlify

ghost commented Dec 26, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 36f2dc5
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69503ee43c166500081e39c5
😎 Deploy Preview https://deploy-preview-9347--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va sheremet-va added this to the 4.1.0 milestone Dec 27, 2025
Comment thread packages/vitest/src/public/runners.ts Outdated
@sheremet-va

ghost commented Jan 9, 2026

Copy link
Copy Markdown
Member Author

TODO: update when #9367 (comment) is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant