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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(test): await pending frontend module teardown
t8y26304335fccec
diff --git a/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts b/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.tsindex 99df1bbed0..9951418320 100644--- a/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts+++ b/apps/desktop/src/components/vector/__tests__/VectorBrowser.spec.ts@@ -85,9 +85,11 @@ beforeEach(() => {document.body.appendChild(root);});-afterEach(() => {+afterEach(async () => {+ await flushUi();app?.unmount();app = null;+ await flushUi();root?.remove();root = null;document.body.innerHTML = "";diff --git a/apps/desktop/src/stores/__tests__/connectionStore.findConnectionNode.spec.ts b/apps/desktop/src/stores/__tests__/connectionStore.findConnectionNode.spec.tsindex 39d9558a94..ba3e971d3e 100644--- a/apps/desktop/src/stores/__tests__/connectionStore.findConnectionNode.spec.ts+++ b/apps/desktop/src/stores/__tests__/connectionStore.findConnectionNode.spec.ts@@ -37,6 +37,7 @@ describe("connection root lookup", () => {// markConnectionLost → clearConnectionNodeLoading 经连接根查找定位节点:// 分组内的连接必须能被找到并清除 loadingstore.markConnectionLost("pg-1", new Error("connection lost"));+ await vi.dynamicImportSettled();expect(conn.isLoading).toBe(false);});@@ -55,6 +56,7 @@ describe("connection root lookup", () => {(collidingDeepNode as { isLoading?: boolean }).isLoading = true;store.markConnectionLost("pg-1", new Error("connection lost"));+ await vi.dynamicImportSettled();// 真正的连接根被清除 loading;深层碰撞节点不受影响expect(realRoot.isLoading).toBe(false);expect((collidingDeepNode as { isLoading?: boolean }).isLoading).toBe(true);