How to use Jest to test functions using crypto or window.msCrypto

前端 未结 0 915
天命终不由人
天命终不由人 2021-02-15 21:55

When running unit tests with Jest in react the window.crypto API is causing problems. I haven\'t found a way to incorporate crypto in Jest without installing other packages whic

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