how to GET a partial value of a nested object in state for Jest

后端 未结 0 486
余生分开走
余生分开走 2021-01-05 02:42

I am writing unit tests for a class component in React. I want to test separate parts of one big object which takes up over 50 lines of code. While I can test the whole obje

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