test(vscode-ide-companion): registerWebviewPanelSerializer 添加 mock 实现

This commit is contained in:
yiliang114
2025-11-20 14:31:20 +08:00
parent 06a8580361
commit 492c56a780
2 changed files with 3 additions and 17 deletions

View File

@@ -40,6 +40,9 @@ vi.mock('vscode', () => ({
},
showTextDocument: vi.fn(),
showWorkspaceFolderPick: vi.fn(),
registerWebviewPanelSerializer: vi.fn(() => ({
dispose: vi.fn(),
})),
},
workspace: {
workspaceFolders: [],