Skip to content

Commit

Permalink
removed debuger from test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Bangarraju-Microsoft committed Jan 6, 2025
1 parent 76e0093 commit 9e4cb83
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions code/frontend/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const config: Config.InitialOptions = {
'<rootDir>/src/vite-env.d.ts',
'<rootDir>/src/components/QuestionInput/index.ts',
'<rootDir>/src/components/Answer/index.ts',
'<rootDir>/src/components/Utils/utils.tsx',
],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ render(<ChatHistoryListItemCell {...componentProps} />);

fireEvent.keyDown(inputItem, { key: 'Escape', code: 'Escape', charCode: 27 });
await waitFor(() => {
screen.debug()
//console.log("Current value:", inputItem); // Debugging log
expect(inputItem).not.toBeInTheDocument();
});
Expand Down Expand Up @@ -358,7 +357,6 @@ render(<ChatHistoryListItemCell {...componentProps} />);

// Simulate the onChange event by typing into the input field
fireEvent.change(inputItem, { target: { value: 'Updated Chat Change' } });
screen.debug()
userEvent.click(screen.getByRole('button', { name: 'confirm new title' }))

await waitFor(() => {
Expand Down Expand Up @@ -433,7 +431,6 @@ render(<ChatHistoryListItemCell {...componentProps} />);

fireEvent.keyDown(inputItem, { key: 'Enter', code: 'Enter', charCode: 13 })
await waitFor(() => {
screen.debug()
//console.log("Current value:", inputItem); // Debugging log
expect(inputItem).toHaveValue('Updated Chat Change');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('ChatHistoryListItemGroups', () => {

// Click on the first cell
fireEvent.click(cells[0]);
screen.debug()
// Wait for the mock function to be called with the correct item
await waitFor(() => {
expect(mockOnSelectConversation).toHaveBeenCalledWith(mockGroupedChatHistory[0].entries[0].id);
Expand Down

0 comments on commit 9e4cb83

Please sign in to comment.