How to use Jest for testing a react component with localStorage?

后端 未结 0 386
小鲜肉
小鲜肉 2020-12-14 07:27

I have a component that calls to local storage and want to test it with jestJS. As far as I can tell jest does not support calls to localStorage.

This is the componen

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