Undefined error when mocking globals with Jest and Create React App

前端 未结 0 1727
死守一世寂寞
死守一世寂寞 2021-02-11 20:42

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

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