ReferenceError 'navigator is not defined' when using jest, jsdom and rewire

后端 未结 0 772
無奈伤痛
無奈伤痛 2021-02-08 11:26

I\'m stuck with a jest test setup. I want to test some client side code, an electron preload script, to be precise and want to use rewire to test methods that are not exported.<

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