Below is our Jest unit test for the component. Before rendering the component for testing, we create a constant 'setStateMock' and mock it with ...
確定! 回上一頁