Skip to content
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

test(transitions): add on:introend test #311

Merged
merged 1 commit into from Feb 5, 2024

Conversation

mcous
Copy link
Collaborator

@mcous mcous commented Feb 3, 2024

Overview

This PR adds a test for on:introend, using suggestions from the #206 thread, for ensuring that transition events can be tested.

Closes #206

Change log

  • Add on:introend test
  • Stub out requestAnimationFrame in transition test when on jsdom

Weirdly enough, without the stub, in jsdom the test passes the first time in watch mode and fails all subsequent times. Smells like maybe some sort of bug in jsdom or Vitest, but I didn't investigate further

@yanick yanick merged commit 7bab116 into testing-library:main Feb 5, 2024
14 checks passed
@mcous mcous deleted the transition-test branch February 5, 2024 23:40
Copy link

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cant waitFor dom changes introduced by on:introend
2 participants