useContext = jest.fn(); }); // Cleanup mock afterEach(() => { React. ... consists in creating a custom hook just to return useContext with your context and ...
確定! 回上一頁