Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

test(vector): make data grid mock synchronous

t8y233dfaf957f60
diff --git a/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts b/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts
index ade0fd3b4b..99df1bbed0 100644
--- a/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts
+++ b/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts
@@ -43,10 +43,10 @@ vi.mock("@/components/ui/ErrorBanner.vue", async () => {
const { defineComponent, h } = await import("vue");
return { default: defineComponent({ setup: () => () => h("div") }) };
});
-vi.mock("@/components/grid/DataGrid.vue", async () => {
- const { defineComponent, h } = await import("vue");
- return { __esModule: true, default: defineComponent({ setup: () => () => h("div") }) };
-});
+vi.mock("@/components/grid/DataGrid.vue", () => ({
+ __esModule: true,
+ default: { render: () => null },
+}));
import VectorBrowser from "@/components/vector/VectorBrowser.vue";