How to write unit test cases for responsiveness using react testing library & jest?

Viewed 151

I am trying to set window.screen.width. According to that, I want to test some features, but window.screen.width is a read-only property so it can't be changed.

Are there any options in jest to write test cases for responsiveness scenarios?

0 Answers
Related