$ the-wire · showcase
Design system fixes icon and CodeEditor test flakiness
By RepoJournal · Filed · About HashiCorp · Composed from the cited sources · methodology
Two rendering-test failures in the HashiCorp design system trace back to Ember test infrastructure changes rather than component bugs, and both now have fixes.
`Icon` - Fix icons not loading in rendering tests on Ember 6.12.1+ hashicorp/design-system
test-helpers 5.6+ renders with renderComponent, which clears #ember-testing after the initializer parked the sprite root there, so the registry warned that the sprite root was not found in the DOM and icons rendered as <use href="#">. The registry now re-adds the root when it is missing in the same location, which keeps Percy snapshots stable.
`CodeEditor` - Wait for editor setup in rendering tests hashicorp/design-system
The hds-code-editor modifier now registers a test waiter while it sets up CodeMirror, because setup runs in an ember-concurrency task chained on dynamic import() calls that settled does not track. Under webpack the imports resolved fast enough to hide it; under Vite's import preloading a few modifier tests fail intermittently on CI. Test breakage, not runtime behavior.
`Icon` - Fix icons not loading in rendering tests on Ember 6.12.1+ (#4211) hashicorp/design-system
The icon fix has landed on the default branch, so the change is now available to consumers pulling from the repo rather than only living in review.
Upgraded Terraform Policy syntax compatibility to v0.5.x hashicorp/terraform-ls
terraform-ls moved its Terraform Policy syntax compatibility to v0.5.x, the version the language server will now parse against for policy documents.
Bump undici to 6.29.1 in package.json and package-lock.json (#204) hashicorp/setup-packer
setup-packer bumped undici to 6.29.1 in package.json and package-lock.json, a routine dependency change with no published behavior change for the action.