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(tests): cover explicit app close prompt mode
t8y27dfd0fdd5ac3
diff --git a/packages/app-tests/queryStore.test.ts b/packages/app-tests/queryStore.test.tsindex 99569461e1..41f113c9ef 100644--- a/packages/app-tests/queryStore.test.ts+++ b/packages/app-tests/queryStore.test.ts@@ -1257,6 +1257,7 @@ test("discard all pending close changes closes the full pending batch", () => {test("app close confirmation discards dirty SQL without closing the tab", () => {setActivePinia(createPinia());+ useSettingsStore().editorSettings.appCloseUnsavedTabsMode = "prompt";const store = useQueryStore();const tabId = store.createTab("conn-1", "db", "a.sql");const tab = store.tabs.find((item) => item.id === tabId);@@ -1310,6 +1311,7 @@ test("disabled unsaved SQL close confirmation skips app close prompt", () => {test("discard all app close changes keeps tabs open and clean", () => {setActivePinia(createPinia());+ useSettingsStore().editorSettings.appCloseUnsavedTabsMode = "prompt";const store = useQueryStore();const firstId = store.createTab("conn-1", "db", "a.sql");const first = store.tabs.find((item) => item.id === firstId);