Skip to content
Discussion options

You must be logged in to vote

hey @astrosuf

This library needs a browser environment to work properly, and I don't think the JSDOM environment inside jest will do.
Anyway, you will need to change jest's testEnvironment to dom and probably mock some functionality.

Anyway, react-floater uses RTL for its tests, so it does work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gilbarbara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants