|
|
@@ -6,13 +6,13 @@ import "@testing-library/jest-dom"
|
|
|
|
|
|
import AppWithProviders from "../App"
|
|
|
|
|
|
-jest.mock("../utils/vscode", () => ({
|
|
|
+jest.mock("@src/utils/vscode", () => ({
|
|
|
vscode: {
|
|
|
postMessage: jest.fn(),
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../components/chat/ChatView", () => ({
|
|
|
+jest.mock("@src/components/chat/ChatView", () => ({
|
|
|
__esModule: true,
|
|
|
default: function ChatView({ isHidden }: { isHidden: boolean }) {
|
|
|
return (
|
|
|
@@ -23,7 +23,7 @@ jest.mock("../components/chat/ChatView", () => ({
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../components/settings/SettingsView", () => ({
|
|
|
+jest.mock("@src/components/settings/SettingsView", () => ({
|
|
|
__esModule: true,
|
|
|
default: function SettingsView({ onDone }: { onDone: () => void }) {
|
|
|
return (
|
|
|
@@ -34,7 +34,7 @@ jest.mock("../components/settings/SettingsView", () => ({
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../components/history/HistoryView", () => ({
|
|
|
+jest.mock("@src/components/history/HistoryView", () => ({
|
|
|
__esModule: true,
|
|
|
default: function HistoryView({ onDone }: { onDone: () => void }) {
|
|
|
return (
|
|
|
@@ -45,7 +45,7 @@ jest.mock("../components/history/HistoryView", () => ({
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../components/mcp/McpView", () => ({
|
|
|
+jest.mock("@src/components/mcp/McpView", () => ({
|
|
|
__esModule: true,
|
|
|
default: function McpView({ onDone }: { onDone: () => void }) {
|
|
|
return (
|
|
|
@@ -56,7 +56,7 @@ jest.mock("../components/mcp/McpView", () => ({
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../components/prompts/PromptsView", () => ({
|
|
|
+jest.mock("@src/components/prompts/PromptsView", () => ({
|
|
|
__esModule: true,
|
|
|
default: function PromptsView({ onDone }: { onDone: () => void }) {
|
|
|
return (
|
|
|
@@ -67,7 +67,7 @@ jest.mock("../components/prompts/PromptsView", () => ({
|
|
|
},
|
|
|
}))
|
|
|
|
|
|
-jest.mock("../context/ExtensionStateContext", () => ({
|
|
|
+jest.mock("@src/context/ExtensionStateContext", () => ({
|
|
|
useExtensionState: () => ({
|
|
|
didHydrateState: true,
|
|
|
showWelcome: false,
|