-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Testing with jsdom and react-testing-library #1215
Comments
Because we use We do this all over this place in our tests, and here is one example: |
@lourenci, did you manage to get this working? I think I'm close, but keep getting:
|
@colinrcummings I gave up. I mocked the library to return the children and to expose some helpers for some unit tests. You can check it out here: https://github.com/lourenci/react-kanban/blob/master/__mocks__/react-beautiful-dnd.js. Although, this will be a problem for who will use the library (if they want to test it). The draggable moving itself I tested on Cypress without any big problem. You can check it out here: https://github.com/lourenci/react-kanban/blob/master/cypress/integration/board.spec.js. |
Thanks for your response, @lourenci. I actually managed to figure something out with |
@colinrcummings I gave up struggling against |
@lourenci, that was the hard part. I'll put the repo together early this week; hopefully it can be useful for issue #623, @alexreardon. |
@lourenci, I wrapped my approach in |
Hi. Thanks for the library.
I'm trying to move a Draggable in
jsdom
withreact-testing-library
and I'm getting this error:Do you guys know anything about this error? It looks like something related with
css-box-model
. It just happens when I try to move the Draggable. All other specs are ok.I tried to move through
mouseMove
too.Thank you.
The text was updated successfully, but these errors were encountered: