First, as shown here, add a call to jest.mock to the top of your test file, and make it create a mock for isomorphic-fetch. Listing 4.57 server.test.js ...
確定! 回上一頁