You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like a temporary fix would be to fire off the event manually like: fireEvent(div, new Event('PointerEnter')). I'm looking into making a fix in the library.
preact-testing-library
version: 2.0.1preact
version: 10.7.0node
version: 16.14.2npm
(oryarn
) version: yarn 1.22.17Relevant code or config
https://github.com/rburgst/preact-testing-lib-pointer-events-bug
Problem description:
The following does not work
and the corresponding test
The problem appears that the listeners in jsdom are registered with
PointerEnter
while the event being fired ispointerenter
.Reproduction repository:
https://github.com/rburgst/preact-testing-lib-pointer-events-bug
Suggested solution:
It looks to me as if the listeners in jsdom should be registered all lowercase.
The text was updated successfully, but these errors were encountered: