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

fix: fire event init #63

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

vbabel
Copy link
Contributor

@vbabel vbabel commented Jun 8, 2022

What:

Preact specific fireEvent is broken: fixes #61

Why:

fireEvent API is broken after preact specific changes

How:

Updated existing event tests to demonstrate the regression, fixed the tests by adding init to the preact specific fireEvent

Checklist:

  • Documentation added N/A
  • Tests
  • Typescript definitions updated N/A
  • Ready to be merged

I'm not entirely sure how the type definitions work for the methods that are inherited from other testing-library libraries, so not sure if anything needs to be done so I marked it as N/A. These changes should bring the fireEvent in the preact library more in line with fireEvent from dom.

@JoviDeCroock JoviDeCroock mentioned this pull request Jun 8, 2022
4 tasks
@JoviDeCroock JoviDeCroock changed the title Pr/fix fire event init fix: fire event init Jun 8, 2022
Copy link
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed your PR so semantic release can pick it up well :D this looks great, thank you!

@JoviDeCroock JoviDeCroock merged commit 4541f34 into testing-library:master Jun 8, 2022
@github-actions
Copy link

github-actions bot commented Jun 8, 2022

🎉 This PR is included in version 3.2.1 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fireEvent updates in 3.0.2 introduced a regression
2 participants