How to mock a Es6 class using Jest?

前端 未结 0 1507
抹茶落季
抹茶落季 2020-12-08 23:43

I am trying the mock a class using jest.mock with factory parameter. However, it does not seem to work as expected.

I got the error "TypeError: projectSe

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