Skip to content

importing react-modal using esmodules syntax from jest does not work, only require syntax works even though I'm using jsdom #1028

Answered by diasbruno
jsoneaday asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried import * as ReactModal from "react-modal";?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jsoneaday
Comment options

@diasbruno
Comment options

Answer selected by jsoneaday
@jsoneaday
Comment options

@diasbruno
Comment options

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