$ the-wire · showcase
Test-utils fixes stale Teleport stub content
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
vuejs/test-utils patches two regressions in its mounting and lookup paths, one of them a stale-content bug that followed directly from a recent stub-type caching change.
fix: update the content of a teleport stubbed with a component vuejs/test-utils
Since a stub keeps the same type across renders, the stub vnode also kept the patch flag compiled for Teleport, so optimized re-renders of the parent skipped it and slot changes never landed. The stub vnode now carries the BAIL patch flag, which forces its slot and props to be diffed on every pass.
fix: do not crash findComponent if ref points to an svg element vuejs/test-utils
findComponent no longer throws when the ref it resolves points at an svg element, a path that previously crashed the lookup outright.
fix: use Vite mode to select the built package for tests vuejs/test-utils
The command meant to exercise the built package was testing source instead: test:build set the Vite mode to test-build while the config read NODE_ENV, which still said test. Green build-test runs now actually cover the build.
chore(deps): update dependency oxfmt to v0.75.0 vuejs/test-utils
Renovate bumped the formatter to 0.75.0 from 0.74.0 in the dev toolchain, with no effect on published code.