Loading topic
FakeClient from the previous chapter. The goal is to make failures happen on demand, so your error handling is tested instead of hoped for.2 min readChatClient object with a complete(prompt) method.2 min readChatClient protocol from earlier chapters, and you know what a recorded reply file is. Here you decide when a request counts as "the same" as a recorded one.3 min readyield), and you have read the earlier chapters on the narrow client seam and the scripted fake. It extends that fake to two shapes of reply that a single canned string can't represent.2 min readChatClient seam, the scripted FakeClient, and the RecordingClient from earlier chapters. Here you decide which one a given test should use.3 min readRecordingClient from the previous chapters (a replay-first client that saves replies keyed by a prompt hash), and you pass the client into your code as an argument.3 min read