Comment

Comment by mcqueenjordan

Even more important, IMO, regardless of whether you're mocking or faking, is to not mock or fake objects that you own. Only mock/fake truly external dependencies. The nice property you get with this is true tests of integration and interoperability between your modules, that are actually calling into each other. Only at the leaf nodes is anything mocked or faked, and that's when it leaves your ownership.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton