-
Notifications
You must be signed in to change notification settings - Fork 28
Test suite: Avatar.svelte #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0026fb2 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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
this.#props = props; | ||
// Run effects before dom updates | ||
// for provide handlers with some execution time | ||
watch.pre( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the $effect to watch.pre over here. It felt to me that onLoadingStatusChange should be running before the dom updates, as it might be contain other reactive updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like a breaking change but I'm not really sure, need some advice
Add Comprehensive Avatar Component Tests
Overview
Adds complete test suite for Avatar component with unit, component, and browser integration tests. Review after #162 merges.
Avatar Builder Changes
props.src
to triggerthis.#loadingStatus = "loading"
only on prop updatesonLoadingStatusChange
callback now fires inpre
effectt o enable callback execution before DOM updatesTest Coverage
Key Features Tested
Quality Assurance
✅ All tests pass locally
✅ Cross-browser compatibility verified