But how do you spy on the object methods? And return a value? const spy = jest.spyOn(global.Date, 'toISOString').mockImplementation(() => { ...
確定! 回上一頁