Enable vitest --detect-async-leaks and fix uncovered leaks#596
Draft
Enable vitest --detect-async-leaks and fix uncovered leaks#596
--detect-async-leaks and fix uncovered leaks#596Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 770f51b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…cumentInternationalizationMenu tests Co-authored-by: stipsan <81981+stipsan@users.noreply.github.com>
Co-authored-by: stipsan <81981+stipsan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Run vitest suite with detect-async-leaks and fix issues
Enable vitest Mar 1, 2026
--detect-async-leaks and fix uncovered leaks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades vitest to 4.1.0-beta.5 to gain
detectAsyncLeakssupport, enables it globally, and fixes the 9 Promise leaks it uncovered.detectAsyncLeaksadded in vitest#9528)detectAsyncLeaks: truein rootvitest.config.tsDocumentInternationalizationMenu.test.tsx: All 9 leaks are unresolved Promises fromMotionValue.start()inmotion-dom. ThePopovercomponent's framer-motion animations create Promises that never resolve in jsdom (no real animation engine). Fix uses fake timers to flush animation frames before/after cleanup:345 tests, 0 leaks.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
sanity-cdn.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/plugins/plugins/dev/test-studio/node_modules/.bin/../sanity/bin/sanity build(dns block)vitest.dev/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.