From e54f4f2222ed1fb06e832fd1c400c2be2442b82a Mon Sep 17 00:00:00 2001 From: Naman Kumar Date: Tue, 28 Jan 2025 14:22:05 +0530 Subject: [PATCH] correct fails tests to skip --- .../src/chat/chat-view/ChatController.test.ts | 46 +++++++++---------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/vscode/src/chat/chat-view/ChatController.test.ts b/vscode/src/chat/chat-view/ChatController.test.ts index d8cb63de9f09..4103eabbe205 100644 --- a/vscode/src/chat/chat-view/ChatController.test.ts +++ b/vscode/src/chat/chat-view/ChatController.test.ts @@ -87,33 +87,29 @@ describe('ChatController', () => { }) }) - test.fails( - 'verifies interactionId is passed through chat requests', - async () => { - const mockRequestID = '0' - mockContextRetriever.retrieveContext.mockResolvedValue([]) + test.skip('verifies interactionId is passed through chat requests', async () => { + const mockRequestID = '0' + mockContextRetriever.retrieveContext.mockResolvedValue([]) - await chatController.handleUserMessage({ - requestID: mockRequestID, - inputText: ps`Test input`, - mentions: [], - editorState: null, - signal: new AbortController().signal, - source: 'chat', - }) - await vi.runOnlyPendingTimersAsync() + await chatController.handleUserMessage({ + requestID: mockRequestID, + inputText: ps`Test input`, + mentions: [], + editorState: null, + signal: new AbortController().signal, + source: 'chat', + }) + await vi.runOnlyPendingTimersAsync() - expect(mockChatClient.chat).toHaveBeenCalledWith( - expect.any(Array), - expect.any(Object), - expect.any(AbortSignal), - mockRequestID - ) - }, - 1500 - ) + expect(mockChatClient.chat).toHaveBeenCalledWith( + expect.any(Array), + expect.any(Object), + expect.any(AbortSignal), + mockRequestID + ) + }, 1500) - test.fails('send, followup, and edit', { timeout: 1500 }, async () => { + test.skip('send, followup, and edit', { timeout: 1500 }, async () => { const postMessageSpy = vi .spyOn(chatController as any, 'postMessage') .mockImplementation(() => {}) @@ -397,7 +393,7 @@ describe('ChatController', () => { }) }) - test.fails('send error', async () => { + test.skip('send error', async () => { const postMessageSpy = vi .spyOn(chatController as any, 'postMessage') .mockImplementation(() => {})