Skip to content

feat: use directive transition wrappers #574

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

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Feb 4, 2025

Motivation

Implements the transition directives wrappers provided in #573 for the transition that lead the CI to fail in the NNS dapp Svelte v5 branch.

Changes

  • Instead of using svelte/transition, use the wrappers that skips the transitions for testing purposes

Tests

I asserted this changes has no impact on the test suite of NNS dapp by integrating a manual package and running the CI successfully in dfinity/nns-dapp#6336.

We will have to mock the ResizeObserver though but, that's something we need for Svelte v5 testing anyway dfinity/nns-dapp#6337

@peterpeterparker peterpeterparker marked this pull request as ready for review February 4, 2025 12:02
@peterpeterparker peterpeterparker requested review from a team as code owners February 4, 2025 12:02
@peterpeterparker peterpeterparker merged commit a8559ee into main Feb 4, 2025
9 checks passed
@peterpeterparker peterpeterparker deleted the feat/implement-directives branch February 4, 2025 13:20
peterpeterparker added a commit that referenced this pull request Feb 12, 2025
# Motivation

Revert #574 because thanks to a different way of mocking the transitions
for test purposes (without vite), those workaround are not needed
anymore.

# Resources

- Mock tested in dfinity/nns-dapp#6404
- New solution to mock the animation for test purposes with Svelte v5
providing by Testing Library in
testing-library/svelte-testing-library#284 (comment)

# Changes

- Revert #574 and use Svelte transitions

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants