Replies: 1 comment
-
any solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there :-)
tinynce-react is great and doing its thing. In the browser we do not have any issues. However, running our tests causes all test suites to fail. Jest is throwing this exception:
TypeError: window.matchMedia is not a function
We have followed the Jest manual and added a mock for
window.matchMedia
but still this is not working.How could we get access to the window object within the TinyMCE instance and mock
window.matchMedia
?What I can't wrap my head around: Even tests without any TinyMCE dependency are crashing with this exception.
We are running:
tinymce: 5.10.5
@tinymce/tinymce-react
:3.14.0
We would highly appreciate some help, as all our tests are currently failing.
Beta Was this translation helpful? Give feedback.
All reactions