Skip to content

Conversation

@AriPerkkio
Copy link
Member

@AriPerkkio AriPerkkio commented Nov 24, 2025

Description

Same as #9033 but for browser runner.

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

@AriPerkkio AriPerkkio changed the title fix(browser): unsubscribe cance on rpc destroy fix(browser): unsubscribe cancel on rpc destroy Nov 24, 2025
@AriPerkkio AriPerkkio changed the title fix(browser): unsubscribe cancel on rpc destroy fix(browser): unsubscribe onCancel on rpc destroy Nov 24, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 24, 2025

@vitest/browser

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

@vitest/browser-playwright

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

@vitest/browser-preview

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

@vitest/browser-webdriverio

npm i https://pkg.pr.new/@vitest/browser-webdriverio@9088

@vitest/coverage-istanbul

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

@vitest/coverage-v8

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

@vitest/expect

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

@vitest/mocker

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

@vitest/pretty-format

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

@vitest/runner

npm i https://pkg.pr.new/@vitest/runner@9088

@vitest/snapshot

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

@vitest/spy

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

@vitest/ui

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

@vitest/utils

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

vitest

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

@vitest/web-worker

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

@vitest/ws-client

npm i https://pkg.pr.new/@vitest/ws-client@9088

commit: 86027c5

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 9070361
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/692436ffff30520008ccae7d
😎 Deploy Preview https://deploy-preview-9088--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/browser-rpc-off-cancels branch from 9070361 to 86027c5 Compare November 24, 2025 11:17
Comment on lines +87 to +90
test('unsubscribes cancel listeners after run', async () => {
// should not throw birpc closing errors
await expect(vitest.cancelCurrentRun('keyboard-input')).resolves.not.toThrow()
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Failure without the fix:

@AriPerkkio AriPerkkio marked this pull request as ready for review November 24, 2025 11:18
@sheremet-va sheremet-va merged commit f5b7237 into vitest-dev:main Nov 24, 2025
14 of 17 checks passed
@AriPerkkio AriPerkkio deleted the fix/browser-rpc-off-cancels branch November 24, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[birpc] rpc is closed, cannot call "onCancel"

2 participants