window.URL.createObjectURL is not a function code example Example: jest mock createobjecturl global.URL.createObjectURL = jest.fn();