Undefined error when mocking globals with Jest and Create React App

前端 未结 0 1493
忘了有多久
忘了有多久 2021-02-11 20:19

I\'m new to unit testing with JS so apologies if I\'m missing something obvious.

I need to mock the navigator.mediaDevices.getUserMedia method for some tests

相关标签:
回答
  • 消灭零回复
提交回复
热议问题