Skip to content

fix(worker): bind stdio's early in case overriden - #11020

Merged
sheremet-va merged 1 commit into
vitest-dev:mainfrom
AriPerkkio:fix/worker-bind-stdio
Aug 20, 2026
Merged

sheremet-va merged 1 commit into
vitest-dev:mainfrom
AriPerkkio:fix/worker-bind-stdio

Conversation

@AriPerkkio

@AriPerkkio AriPerkkio commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Description

Resolves #11018

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown
@vitest/browser

npm i https://pkg.pr.new/@vitest/browser@d826044

@vitest/browser-playwright

npm i https://pkg.pr.new/@vitest/browser-playwright@d826044

@vitest/browser-preview

npm i https://pkg.pr.new/@vitest/browser-preview@d826044

@vitest/coverage-istanbul

npm i https://pkg.pr.new/@vitest/coverage-istanbul@d826044

@vitest/coverage-v8

npm i https://pkg.pr.new/@vitest/coverage-v8@d826044

@vitest/expect

npm i https://pkg.pr.new/@vitest/expect@d826044

@vitest/mocker

npm i https://pkg.pr.new/@vitest/mocker@d826044

@vitest/pretty-format

npm i https://pkg.pr.new/@vitest/pretty-format@d826044

@vitest/snapshot

npm i https://pkg.pr.new/@vitest/snapshot@d826044

@vitest/spy

npm i https://pkg.pr.new/@vitest/spy@d826044

@vitest/ui

npm i https://pkg.pr.new/@vitest/ui@d826044

@vitest/utils

npm i https://pkg.pr.new/@vitest/utils@d826044

vitest

npm i https://pkg.pr.new/vitest@d826044

@vitest/web-worker

npm i https://pkg.pr.new/@vitest/web-worker@d826044

commit: d826044

@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d826044
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a86b897a5e2800008a7a1c3
😎 Deploy Preview https://deploy-preview-11020--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@AriPerkkio AriPerkkio mentioned this pull request Aug 20, 2026
6 tasks done
@AriPerkkio
AriPerkkio marked this pull request as ready for review August 20, 2026 08:28
Comment on lines +13 to +17
it('should not hang', () => {
vi.unstubAllGlobals()

process.stdout.write = () => true
})

@AriPerkkio AriPerkkio Aug 20, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the fix this test causes worker to hang forever

Image

@sheremet-va
sheremet-va merged commit 67ef7a1 into vitest-dev:main Aug 20, 2026
36 checks passed
@AriPerkkio
AriPerkkio deleted the fix/worker-bind-stdio branch August 20, 2026 10:05
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version 5.0.0-RC1-2 hangs indefinitely

3 participants