(chatId: string)
| 840 | /** Keys that should NEVER be invalidated by chat message mutations |
| 841 | * because they are completely unrelated to the message flow. */ |
| 842 | const unrelatedKeys = (chatId: string) => [ |
| 843 | { label: "diff-contents", key: chatDiffContentsKey(chatId) }, |
| 844 | { label: "cost-summary", key: chatCostSummaryKey("me", undefined) }, |
| 845 | ]; |
| 846 | |
| 847 | it("createChatMessage does not invalidate unrelated queries", async () => { |
| 848 | const queryClient = createTestQueryClient(); |
no test coverage detected