Skip to content

Conversation

@AriPerkkio
Copy link
Member

Description

Fixes error below when running pnpm test:forks --no-isolate in test/core:

file:///x/vitest/packages/vitest/dist/chunks/startModuleRunner.Di-EZqh0.js:585
        if (process.listeners(event).length > 1) return;
                    ^

TypeError: process.listeners is not a function
    at catchError (file:///x/vitest/packages/vitest/dist/chunks/startModuleRunner.Di-EZqh0.js:585:15)
    at process.uncaughtException (file:///x/vitest/packages/vitest/dist/chunks/startModuleRunner.Di-EZqh0.js:593:35)
    at process.emit (node:events:518:28)
    at process.emit (/x/vitest/packages/vitest/suppress-warnings.cjs:20:18)
    at process._fatalException (node:internal/process/execution:155:25)

Node.js v22.18.0

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:.

@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 898fb5d
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6908b105a2bc7800084ad30d
😎 Deploy Preview https://deploy-preview-8916--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.

@AriPerkkio AriPerkkio force-pushed the fix/module-runner-bind-process branch from c676972 to 66a95ec Compare November 3, 2025 13:51
@sheremet-va sheremet-va merged commit 6240d51 into vitest-dev:main Nov 3, 2025
9 of 14 checks passed
@AriPerkkio AriPerkkio deleted the fix/module-runner-bind-process branch November 3, 2025 16:57
Copilot AI pushed a commit that referenced this pull request Nov 6, 2025
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.

2 participants