Replaces property on an object with another value.
For mocking functions, and 'get' or 'set' accessors, use jest.spyOn() instead.
jest.spyOn()
Replaces property on an object with another value.