move chat utils
This commit is contained in:
parent
896678ee52
commit
51dfa72d1d
7 changed files with 9 additions and 13 deletions
|
|
@ -167,10 +167,10 @@ export function modifyAnyConfigWithSharedConfig<
|
|||
if (sharedConfig.readResponseTTS !== undefined) {
|
||||
configCopy.experimental.readResponseTTS = sharedConfig.readResponseTTS;
|
||||
}
|
||||
|
||||
if (sharedConfig.useCurrentFileAsContext !== undefined) {
|
||||
configCopy.experimental.useCurrentFileAsContext =
|
||||
sharedConfig.useCurrentFileAsContext;
|
||||
}
|
||||
|
||||
return configCopy;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
---
|
||||
globs: "**/intellij**"
|
||||
---
|
||||
|
||||
# Continue JetBrains Extension
|
||||
|
||||
## Project Purpose
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { act } from "@testing-library/react";
|
||||
import { renderWithProviders } from "../../../util/test/render";
|
||||
import { Chat } from "../Chat";
|
||||
import {
|
||||
getElementByTestId,
|
||||
verifyNotPresentByTestId,
|
||||
verifyNotPresentByText,
|
||||
} from "./utils";
|
||||
} from "../../../util/test/utils";
|
||||
import { Chat } from "../Chat";
|
||||
|
||||
test("Chat apply scenarios: handle apply updates and display the accept / reject all buttons", async () => {
|
||||
const { ideMessenger } = await renderWithProviders(<Chat />);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { act } from "@testing-library/react";
|
||||
import { addAndSelectMockLlm } from "../../../util/test/config";
|
||||
import { renderWithProviders } from "../../../util/test/render";
|
||||
import { Chat } from "../Chat";
|
||||
import {
|
||||
getElementByTestId,
|
||||
getElementByText,
|
||||
sendInputWithMockedResponse,
|
||||
} from "./utils";
|
||||
} from "../../../util/test/utils";
|
||||
import { Chat } from "../Chat";
|
||||
|
||||
test("should render input box", async () => {
|
||||
await renderWithProviders(<Chat />);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
getElementByText,
|
||||
sendInputWithMockedResponse,
|
||||
verifyNotPresentByTestId,
|
||||
} from "./utils";
|
||||
} from "../../../util/test/utils";
|
||||
|
||||
const EDIT_WORKSPACE_DIR = "file:///workspace";
|
||||
const EDIT_FILEPATH = "test.txt";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export interface ProfilesState {
|
|||
preferencesByProfileId: Record<string, PreferencesState>;
|
||||
}
|
||||
|
||||
export const defaultProfilesState: ProfilesState = {
|
||||
const initialState: ProfilesState = {
|
||||
preferencesByProfileId: {},
|
||||
selectedProfileId: null,
|
||||
selectedOrganizationId: null,
|
||||
|
|
@ -51,7 +51,7 @@ export const defaultProfilesState: ProfilesState = {
|
|||
|
||||
export const profilesSlice = createSlice({
|
||||
name: "profiles",
|
||||
initialState: defaultProfilesState,
|
||||
initialState,
|
||||
reducers: {
|
||||
setSelectedProfile: (state, { payload }: PayloadAction<string | null>) => {
|
||||
state.selectedProfileId = payload;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { screen, waitFor } from "@testing-library/dom";
|
|||
import { act } from "@testing-library/react";
|
||||
import { Editor } from "@tiptap/core";
|
||||
import { ChatMessage } from "core";
|
||||
import { MockIdeMessenger } from "../../../context/MockIdeMessenger";
|
||||
import { MockIdeMessenger } from "../../context/MockIdeMessenger";
|
||||
|
||||
function logDomText() {
|
||||
const bodyText = document.body.innerHTML;
|
||||
Loading…
Add table
Reference in a new issue