2

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?

Drew Reese
  • 103,803
  • 12
  • 69
  • 96
  • Does this answer your question? [Mocking globals in Jest](https://stackoverflow.com/questions/40449434/mocking-globals-in-jest) – skyboyer Sep 01 '20 at 07:17

0 Answers0