···433433 // are only used by the automocker, so this doesn't matter
434434 for (const prop of prototypeMembers) {
435435 const prototypeMock = returnValue[prop]
436436+ // the method was overidden because of inheritence, ignore it
437437+ // eslint-disable-next-line ts/no-use-before-define
438438+ if (prototypeMock !== mock.prototype[prop]) {
439439+ continue
440440+ }
441441+436442 const isMock = isMockFunction(prototypeMock)
437443 const prototypeState = isMock ? prototypeMock.mock : undefined
438444 const prototypeConfig = isMock ? MOCK_CONFIGS.get(prototypeMock) : undefined