Mock it in 3 steps · Import the module you want to mock into your test file. · jest.mock() the module. · Use .mockResolvedValue(<mocked response>) ...
確定! 回上一頁