News for hackers. Stuff that matters.
Re:Don't Be Afraid of Types by nrook on Saturday March 22, 2025 @12:58PM (#43447066)
Run a fake version of the API server, and then connect the real client to it. It is usually a mistake to make the "unit" of your unit test too small.
Re:Don't Be Afraid of Types by kdps on Saturday March 22, 2025 @02:54PM (#43447754)
In this case, API does not refer to client/server. The API of the aforementioned static class is the set of its methods and their signatures.