Closed 615349 closed 4 years ago
You don't have a real DOM or browser - you'll want to use the device
prop to set a device when doing testing outside of a browser: https://github.com/contra/react-responsive#forcing-a-device-with-the-device-prop
@contra
Do i need to use the device
props in the actual code? or should I use it in the jest?
if the latter, can you please show one example?
thanks
@615349 There are examples in the README: https://github.com/contra/react-responsive#testing
hi
i below below snippet Code:
jest:
but then i got below error