See more
beforeAll(() => { global.fetch = jest.fn(); //window.fetch = jest.fn(); if running browser environment});