Mock forwardRef components jest mockImplementation with typescript

前端 未结 0 956
情深已故
情深已故 2021-02-05 20:37

How are you suppose to handle mocking components in test files when the Component is wrapped in forwardRef? The mockImplementation is not on method, but instead is on a property

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