Mocking only a single `window` property with Jest

后端 未结 0 777
挽巷
挽巷 2020-12-19 22:44

I have a React component that makes a call to window.location.href.

As part of my Jest test, I mock the value of window.location.href as fol

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