mock file in setup and assert mock.calls

前端 未结 0 547
陌清茗
陌清茗 2020-12-23 06:39

I want to test the assertion of arguments like: expect(getCodes.mock.calls).toHaveBeenCalledWith({...values...}).

I have an entire setupTests.js file (

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