Skip to content

Commit 8797436

Browse files
committed
test: provide getStorageBasePath in provider storage mock
TaskHistoryStore.deleteTaskFile resolves the task file path before the best-effort unlink block, so a storage mock without getStorageBasePath now fails the delete call instead of being swallowed. Add the export to the ClineProvider storage mock so the main-branch regression test runs the real delete semantics.
1 parent c842cd2 commit 8797436

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/core/webview/__tests__/ClineProvider.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ vi.mock("../../../utils/storage", () => ({
8787
getSettingsDirectoryPath: vi.fn().mockResolvedValue("/test/settings/path"),
8888
getTaskDirectoryPath: vi.fn().mockResolvedValue("/test/task/path"),
8989
getGlobalStoragePath: vi.fn().mockResolvedValue("/test/storage/path"),
90+
getStorageBasePath: vi.fn().mockImplementation((defaultPath: string) => defaultPath),
9091
}))
9192

9293
vi.mock("@modelcontextprotocol/sdk/types.js", () => ({

0 commit comments

Comments
 (0)