I'm not sure I see the benefits here. Given you're already testing your hooks, as is assumed in the guide, what benefit does this approach have over mocking the hook for component tests?
[0] https://www.typescriptlang.org/docs/handbook/utility-types.h...