We can use jest.isMockFunction(fn) to verify whether a function is mocked or not. From the source code, we know jestjs will set a private property _isMock
jestjs
_isMock