mock createobjecturl code example Example: jest mock createobjecturl global.URL.createObjectURL = jest.fn();