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
When switching to happy-dom I noticed this bug started occuring with @testing-libary. I'm not 100% certain which side the fix needs to be on but it works with jestdom. I will also raise a bug over there
TypeError: dt.setData is not a function
❯ getClipboardDataFromString node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js:25:8
❯ Object.paste node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js:16:70
❯ node_modules/@testing-library/user-event/dist/esm/setup/setup.js:84:35
❯ Object.asyncWrapper node_modules/@testing-library/react/dist/pure.js:73:28
❯ wrapAsync node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js:7:24
❯ Object.method [as paste] node_modules/@testing-library/user-event/dist/esm/setup/setup.js:84
To Reproduce
Steps to reproduce the behavior:
Setup a new project using happy-dom and @testing-library/user-event
Ran into the same issue. Looking at the repo commits, it seems like support for this was added last week (but not yet released). See 243676f. 🤞 this lands in a release soon!
Describe the bug
When switching to happy-dom I noticed this bug started occuring with @testing-libary. I'm not 100% certain which side the fix needs to be on but it works with jestdom. I will also raise a bug over there
To Reproduce
Steps to reproduce the behavior:
See reproduction repo here for full example
Expected behavior
Expect the .paste() function to work as it does in jestdom
Device:
Additional context
See reproduction repo here for full example
I have also raised an issue with @testing-libary
testing-library/user-event#1167
The text was updated successfully, but these errors were encountered: