Repository navigation
Conversation
- vue, @vue/* 3.5.45, vitest and @vitest/coverage-v8 5.1.0 - oxfmt 0.77.0, oxlint 1.92.0, vite 8.3.6 (newer releases still within pnpm's minimumReleaseAge window) - vue-component-type-helpers ^3.3.14, js-beautify ^2.0.3 - refresh lockfile within existing ranges, fixing advisories in picomatch, @babel/core and browserslist jsdom stays on 30.x: jsdom 31 returns empty computed styles for disconnected elements, which breaks isVisible() for detached mounts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- remove jsdom-global (unused) - replace husky with simple-git-hooks: the husky v4-style config was ignored by husky 9 and no .husky directory existed, so the pre-commit hook never ran. Hooks are installed by the prepare script; the simple-git-hooks postinstall script stays blocked via allowBuilds. - replace lint-staged with nano-staged (0 dependencies), same config Co-Authored-By: Claude Opus 5.5 <[email protected]>
- remove jsdom-global (unused) - replace husky with simple-git-hooks: the husky v4-style config was ignored by husky 9 and no .husky directory existed, so the pre-commit hook never ran. Hooks are installed by the prepare script; the simple-git-hooks postinstall script stays blocked via allowBuilds. - replace lint-staged with nano-staged (0 dependencies), same config Co-Authored-By: Claude Opus 5.5 <[email protected]>
Superseded by the rebase onto chore/deps-refresh (vuejs#3007); tree unchanged.
jsdom 31 follows the CSS spec and returns empty computed styles for elements that are not connected to a document. Components mounted without `attachTo` render into a detached container, so isVisible() returned true for elements hidden via v-show or an inline style. Fall back to the inline style when a computed value is empty. Behaviour on environments that still compute styles for detached elements (jsdom 30, happy-dom) is unchanged. Stylesheet rules can only apply to connected elements, so the stylesheet test now mounts with `attachTo`. Also bump jsdom to 31.0.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
✅ Deploy Preview for vue-test-utils-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Merged
Member
|
Thanks for investigating. We’ll fix the tests to use Closing in favor of #3015 |
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.
Builds on #3008.
Would possibly fix #3006 as well.
jsdom 31 follows the CSS spec and returns empty computed styles for elements that are not connected to a document. Components mounted without
attachTorender into a detached container, so isVisible() returned true for elements hidden via v-show or an inline style.Fall back to the inline style when a computed value is empty. Behaviour on environments that still compute styles for detached elements (jsdom 30, happy-dom) is unchanged. Stylesheet rules can only apply to connected elements, so the stylesheet test now mounts with
attachTo.Also bump jsdom to 31.0.0.