Mocking dayjs extend

You could write a more thorough manual mock for dayjs, one that has the extend method, but then you’re coupling your tests to a 3rd party interface. “Don’t mock what you don’t own” – you’ll end up having to recreate more and more of the dayjs interface in your mock, and then if that interface … Read more