doOneThing = jest.fn() as it's a read-only property ( TypeError: Cannot assign to ... jest.spyOn(object, 'method', 'get').mockReturnValue('mockedValue');.
確定! 回上一頁