Dec 09, 2019 · Mocking React hooks when unit testing using Jest. ts is an ES6 class so it is replaced with a mock constructor. mock(). mock creates an ...
確定! 回上一頁