Skip to content

Commit b20e655

Browse files
committed
Vibe-coded test fix
1 parent a7a0a4f commit b20e655

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

webview-ui/src/components/chat/__tests__/ChatView.spec.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,19 @@ const defaultProps: ChatViewProps = {
281281
hideAnnouncement: () => {},
282282
}
283283

284-
const queryClient = new QueryClient()
284+
// kilocode_change, moved into renderChatView: const queryClient = new QueryClient()
285285

286286
const renderChatView = (props: Partial<ChatViewProps> = {}) => {
287+
// kilocode_change start: test isolation
288+
const queryClient = new QueryClient({
289+
defaultOptions: {
290+
queries: {
291+
retry: false,
292+
},
293+
},
294+
})
295+
// kilocode_change end
296+
287297
return render(
288298
<ExtensionStateContextProvider>
289299
<QueryClientProvider client={queryClient}>

0 commit comments

Comments
 (0)