Comment

Comment by cmckn

I’m a bit confused as to why a “unit test” would ever be hitting a real, external API. I would call that an integration test, E2E test, etc. that probably shouldn’t be run frequently (as part of a normal build, for example).

This API sounds like garbage, don’t get me wrong; and because of that, mocking it’s behavior is going to be almost impossible.

parent cmckn 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton