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