When unit testing Angular\'s HttpClient.get(...) function, it seems that TypeScript cannot check types correctly when spying on HttpClient.get(...) with given responseType.<