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。

chore: migrate test runner from node:test/tsx to vitest

t8y2fabf2172e413
diff --git a/docs/lib/releaseMetadataRequest.test.ts b/docs/lib/releaseMetadataRequest.test.ts
index 853a317e64..74c512b956 100644
--- a/docs/lib/releaseMetadataRequest.test.ts
+++ b/docs/lib/releaseMetadataRequest.test.ts
@@ -1,5 +1,5 @@
import assert from 'node:assert/strict';
-import { test } from 'node:test';
+import { test } from 'vitest';
import { createUncachedUrl, releaseMetadataRequestInit } from './releaseMetadataRequest';
test('createUncachedUrl appends cache buster without removing existing query params', () => {
diff --git a/package.json b/package.json
index e75d21c053..73e1015153 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"check": "node scripts/run-check.mjs",
"lint": "oxlint --vue-plugin apps/desktop/src",
"fmt": "oxfmt \"apps/desktop/src/**/*.{ts,vue}\"",
- "test": "tsx --tsconfig apps/desktop/tsconfig.json --test packages/app-tests/*.test.ts",
+ "test": "vitest run",
"preview": "vite preview --config apps/desktop/vite.config.ts",
"tauri": "tauri",
"prepare": "husky"
@@ -86,6 +86,7 @@
"tsx": "^4.22.4",
"typescript": "~6.0.3",
"vite": "^8.0.16",
+ "vitest": "^4.1.8",
"vue-tsc": "^3.3.3"
},
"lint-staged": {
diff --git a/packages/app-tests/actionActivation.test.ts b/packages/app-tests/actionActivation.test.ts
index 62f011840f..e01f564483 100644
--- a/packages/app-tests/actionActivation.test.ts
+++ b/packages/app-tests/actionActivation.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { shouldSuppressRepeatedActivation, tryStartExclusiveActivation } from "../../apps/desktop/src/lib/actionActivation.ts";
test("allows the first activation", () => {
diff --git a/packages/app-tests/agentDriverInstallHint.test.ts b/packages/app-tests/agentDriverInstallHint.test.ts
index fae78f067c..1deb8bfbdb 100644
--- a/packages/app-tests/agentDriverInstallHint.test.ts
+++ b/packages/app-tests/agentDriverInstallHint.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { showAgentDriverInstallHint } from "../../apps/desktop/src/lib/agentDriverInstallHint.ts";
test("hides the agent driver install hint when the selected driver is installed", () => {
diff --git a/packages/app-tests/agentDriverUpdateBadge.test.ts b/packages/app-tests/agentDriverUpdateBadge.test.ts
index 7a76b74594..15a643eb0c 100644
--- a/packages/app-tests/agentDriverUpdateBadge.test.ts
+++ b/packages/app-tests/agentDriverUpdateBadge.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
countAvailableAgentDriverUpdates,
diff --git a/packages/app-tests/aiAgentPlan.test.ts b/packages/app-tests/aiAgentPlan.test.ts
index 5471701332..1566a3bd78 100644
--- a/packages/app-tests/aiAgentPlan.test.ts
+++ b/packages/app-tests/aiAgentPlan.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildAiAgentPlan } from "../../apps/desktop/src/lib/aiAgentPlan.ts";
import type { AiAction, AiAssistantMode } from "../../apps/desktop/src/lib/ai.ts";
import type { ConnectionConfig } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/aiAgentStepPresentation.test.ts b/packages/app-tests/aiAgentStepPresentation.test.ts
index 216cdd95e9..63a51e087b 100644
--- a/packages/app-tests/aiAgentStepPresentation.test.ts
+++ b/packages/app-tests/aiAgentStepPresentation.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildAiAgentStepItems } from "../../apps/desktop/src/lib/aiAgentStepPresentation.ts";
import type { AiAgentPlan } from "../../apps/desktop/src/lib/aiAgentPlan.ts";
diff --git a/packages/app-tests/aiPrompt.test.ts b/packages/app-tests/aiPrompt.test.ts
index b351f52407..3cfc11b1e3 100644
--- a/packages/app-tests/aiPrompt.test.ts
+++ b/packages/app-tests/aiPrompt.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import type { AiContext } from "../../apps/desktop/src/lib/ai.ts";
class MemoryStorage {
diff --git a/packages/app-tests/aiPromptEval.test.ts b/packages/app-tests/aiPromptEval.test.ts
index aa596660d0..2ea07c1639 100644
--- a/packages/app-tests/aiPromptEval.test.ts
+++ b/packages/app-tests/aiPromptEval.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import type { AiAction, AiAssistantMode, AiContext } from "../../apps/desktop/src/lib/ai.ts";
class MemoryStorage {
diff --git a/packages/app-tests/aiPromptKeyboard.test.ts b/packages/app-tests/aiPromptKeyboard.test.ts
index 9ac516246e..7a9fb44600 100644
--- a/packages/app-tests/aiPromptKeyboard.test.ts
+++ b/packages/app-tests/aiPromptKeyboard.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
isAiPromptImeCompositionEvent,
shouldSubmitAiPromptOnKeydown,
diff --git a/packages/app-tests/aiSchemaComments.test.ts b/packages/app-tests/aiSchemaComments.test.ts
index c45c72bf4e..76f5282857 100644
--- a/packages/app-tests/aiSchemaComments.test.ts
+++ b/packages/app-tests/aiSchemaComments.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { buildSystemPrompt, type AiContext } from "../../apps/desktop/src/lib/ai.ts";
diff --git a/packages/app-tests/aiSkills.test.ts b/packages/app-tests/aiSkills.test.ts
index accc54821f..54767e92d1 100644
--- a/packages/app-tests/aiSkills.test.ts
+++ b/packages/app-tests/aiSkills.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import type { AiAction } from "../../apps/desktop/src/lib/ai.ts";
import { AI_SKILL_DEFINITIONS, aiSkillForAction } from "../../apps/desktop/src/lib/aiSkills.ts";
diff --git a/packages/app-tests/aiSqlExecutionPolicy.test.ts b/packages/app-tests/aiSqlExecutionPolicy.test.ts
index de419a116c..7780ba7657 100644
--- a/packages/app-tests/aiSqlExecutionPolicy.test.ts
+++ b/packages/app-tests/aiSqlExecutionPolicy.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
classifyAiSqlExecution,
classifyConnectionEnvironment,
diff --git a/packages/app-tests/aiTableMentions.test.ts b/packages/app-tests/aiTableMentions.test.ts
index cbb2561652..7bc67b4d61 100644
--- a/packages/app-tests/aiTableMentions.test.ts
+++ b/packages/app-tests/aiTableMentions.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { formatAiTableMention, parseAiTableMentions } from "../../apps/desktop/src/lib/aiTableMentions.ts";
test("parses simple and schema-qualified AI table mentions", () => {
diff --git a/packages/app-tests/appTheme.test.ts b/packages/app-tests/appTheme.test.ts
index 821b53b40d..b73eba4c49 100644
--- a/packages/app-tests/appTheme.test.ts
+++ b/packages/app-tests/appTheme.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
getTauriThemeForMode,
normalizeAppThemeMode,
diff --git a/packages/app-tests/appUpdater.test.ts b/packages/app-tests/appUpdater.test.ts
index 1729df8c41..65f7daf90d 100644
--- a/packages/app-tests/appUpdater.test.ts
+++ b/packages/app-tests/appUpdater.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { canDownloadAndInstallUpdate } from "../../apps/desktop/src/composables/useAppUpdater.ts";
import type { UpdateInfo } from "../../apps/desktop/src/lib/api.ts";
diff --git a/packages/app-tests/binaryCellDownload.test.ts b/packages/app-tests/binaryCellDownload.test.ts
index 365afd52a7..13d9bd0c30 100644
--- a/packages/app-tests/binaryCellDownload.test.ts
+++ b/packages/app-tests/binaryCellDownload.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
binaryCellDisplayText,
diff --git a/packages/app-tests/cellImageUrl.test.ts b/packages/app-tests/cellImageUrl.test.ts
index bb893396d0..09a5d3d68b 100644
--- a/packages/app-tests/cellImageUrl.test.ts
+++ b/packages/app-tests/cellImageUrl.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { cellImagePreviewUrl } from "../../apps/desktop/src/lib/cellImageUrl.ts";
test("detects obvious remote image URLs", () => {
diff --git a/packages/app-tests/cellValue.test.ts b/packages/app-tests/cellValue.test.ts
index 239e5379ab..0925ffb7da 100644
--- a/packages/app-tests/cellValue.test.ts
+++ b/packages/app-tests/cellValue.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { displayCellValue } from "../../apps/desktop/src/lib/cellValue.ts";
test("displayCellValue returns NULL for null", () => {
diff --git a/packages/app-tests/clipboard.test.ts b/packages/app-tests/clipboard.test.ts
index bacc29b2e8..08d2bd267d 100644
--- a/packages/app-tests/clipboard.test.ts
+++ b/packages/app-tests/clipboard.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { copyToClipboard, readTextFromClipboard } from "../../apps/desktop/src/lib/clipboard.ts";
test("copyToClipboard falls back when navigator clipboard is unavailable", async () => {
diff --git a/packages/app-tests/columnFormatter.test.ts b/packages/app-tests/columnFormatter.test.ts
index df7f4e7e24..364faef52a 100644
--- a/packages/app-tests/columnFormatter.test.ts
+++ b/packages/app-tests/columnFormatter.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
applyColumnFormatter,
buildColumnFormatterKey,
diff --git a/packages/app-tests/configCrypto.test.ts b/packages/app-tests/configCrypto.test.ts
index 603d72d25d..8dfce0858b 100644
--- a/packages/app-tests/configCrypto.test.ts
+++ b/packages/app-tests/configCrypto.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
CONFIG_CRYPTO_UNAVAILABLE,
encryptConfig,
diff --git a/packages/app-tests/connectionAttemptTimeout.test.ts b/packages/app-tests/connectionAttemptTimeout.test.ts
index 8c3d450e54..703c2491a8 100644
--- a/packages/app-tests/connectionAttemptTimeout.test.ts
+++ b/packages/app-tests/connectionAttemptTimeout.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
CONNECTION_ATTEMPT_TIMEOUT_BUFFER_MS,
MONGO_LEGACY_FALLBACK_TIMEOUT_BUFFER_MS,
diff --git a/packages/app-tests/connectionDeepLink.test.ts b/packages/app-tests/connectionDeepLink.test.ts
index c530141500..27bf02ead1 100644
--- a/packages/app-tests/connectionDeepLink.test.ts
+++ b/packages/app-tests/connectionDeepLink.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { parseConnectionDeepLink } from "../../apps/desktop/src/lib/connectionDeepLink.ts";
test("parses dbx connection deep link query fields", () => {
diff --git a/packages/app-tests/connectionHealth.test.ts b/packages/app-tests/connectionHealth.test.ts
index 29399c255b..94bc6cf6ca 100644
--- a/packages/app-tests/connectionHealth.test.ts
+++ b/packages/app-tests/connectionHealth.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { staleConnectionMessage, shouldMarkDisconnected } from "../../apps/desktop/src/lib/connectionHealth.ts";
test("metadata connection errors should turn off connected state", () => {
diff --git a/packages/app-tests/connectionPresentation.test.ts b/packages/app-tests/connectionPresentation.test.ts
index 3a74898c8f..9a5375fe94 100644
--- a/packages/app-tests/connectionPresentation.test.ts
+++ b/packages/app-tests/connectionPresentation.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import type { ConnectionConfig } from "../../apps/desktop/src/types/database.ts";
import {
diff --git a/packages/app-tests/connectionStorePinnedCleanup.test.ts b/packages/app-tests/connectionStorePinnedCleanup.test.ts
index af6b8f81b1..9390fd1f37 100644
--- a/packages/app-tests/connectionStorePinnedCleanup.test.ts
+++ b/packages/app-tests/connectionStorePinnedCleanup.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { createPinia, setActivePinia } from "pinia";
import { useConnectionStore } from "../../apps/desktop/src/stores/connectionStore.ts";
diff --git a/packages/app-tests/connectionTransport.test.ts b/packages/app-tests/connectionTransport.test.ts
index 6d7f95bcda..33883e9707 100644
--- a/packages/app-tests/connectionTransport.test.ts
+++ b/packages/app-tests/connectionTransport.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { hasEnabledTransportLayers } from "../../apps/desktop/src/lib/connectionTransport.ts";
diff --git a/packages/app-tests/connectionUrl.test.ts b/packages/app-tests/connectionUrl.test.ts
index 7296125ac4..694a996a4c 100644
--- a/packages/app-tests/connectionUrl.test.ts
+++ b/packages/app-tests/connectionUrl.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { normalizeMongoConnectionString, parseConnectionUrl } from "../../apps/desktop/src/lib/connectionUrl.ts";
test("parses postgres connection URLs", () => {
diff --git a/packages/app-tests/connectionUrlPlaceholder.test.ts b/packages/app-tests/connectionUrlPlaceholder.test.ts
index d10f9398ad..45516eaa0d 100644
--- a/packages/app-tests/connectionUrlPlaceholder.test.ts
+++ b/packages/app-tests/connectionUrlPlaceholder.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { connectionUrlPlaceholder } from "../../apps/desktop/src/lib/connectionPresentation.ts";
diff --git a/packages/app-tests/createDatabaseSql.test.ts b/packages/app-tests/createDatabaseSql.test.ts
index 1d914c1acd..22ab44749c 100644
--- a/packages/app-tests/createDatabaseSql.test.ts
+++ b/packages/app-tests/createDatabaseSql.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
duckDbAttachedDatabaseNameFromPath,
uniqueDuckDbAttachedDatabaseName,
diff --git a/packages/app-tests/dataGridColumnFilter.test.ts b/packages/app-tests/dataGridColumnFilter.test.ts
index 963932ba7a..6e3694ea33 100644
--- a/packages/app-tests/dataGridColumnFilter.test.ts
+++ b/packages/app-tests/dataGridColumnFilter.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
appendColumnValueFilterCondition,
buildColumnValueFilterCondition,
diff --git a/packages/app-tests/dataGridColumnType.test.ts b/packages/app-tests/dataGridColumnType.test.ts
index 8ff5497696..be1feb80c8 100644
--- a/packages/app-tests/dataGridColumnType.test.ts
+++ b/packages/app-tests/dataGridColumnType.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { resolveHeaderColumnType } from "../../apps/desktop/src/lib/dataGridColumnType.ts";
test("prefers table-metadata type over the result type", () => {
diff --git a/packages/app-tests/dataGridColumnVisibility.test.ts b/packages/app-tests/dataGridColumnVisibility.test.ts
index f28aa04750..d8fb45560e 100644
--- a/packages/app-tests/dataGridColumnVisibility.test.ts
+++ b/packages/app-tests/dataGridColumnVisibility.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
allNullColumnIndexes,
filterColumnVisibilityOptions,
diff --git a/packages/app-tests/dataGridColumnWidth.test.ts b/packages/app-tests/dataGridColumnWidth.test.ts
index 00369a9858..b4c9fc0ff1 100644
--- a/packages/app-tests/dataGridColumnWidth.test.ts
+++ b/packages/app-tests/dataGridColumnWidth.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { calculateDataGridColumnWidth, DATA_GRID_HEADER_CONTROL_WIDTH } from "../../apps/desktop/src/lib/dataGridColumnWidth.ts";
test("reserves header control space when auto-sizing a column from the header", () => {
diff --git a/packages/app-tests/dataGridDetail.test.ts b/packages/app-tests/dataGridDetail.test.ts
index be908b933b..d4bf407f5a 100644
--- a/packages/app-tests/dataGridDetail.test.ts
+++ b/packages/app-tests/dataGridDetail.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
buildDataGridCellDetail,
diff --git a/packages/app-tests/dataGridEditor.test.ts b/packages/app-tests/dataGridEditor.test.ts
index f0381a66d1..a663452faa 100644
--- a/packages/app-tests/dataGridEditor.test.ts
+++ b/packages/app-tests/dataGridEditor.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { computed, nextTick, ref } from "vue";
import { createPinia, setActivePinia } from "pinia";
import { useDataGridEditor } from "../../apps/desktop/src/composables/useDataGridEditor.ts";
diff --git a/packages/app-tests/dataGridPagination.test.ts b/packages/app-tests/dataGridPagination.test.ts
index 576daee7c3..bbd1ddef12 100644
--- a/packages/app-tests/dataGridPagination.test.ts
+++ b/packages/app-tests/dataGridPagination.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { canGoNextDataGridPage } from "../../apps/desktop/src/lib/dataGridPagination.ts";
test("known total disables next page at the last exact page", () => {
diff --git a/packages/app-tests/dataGridPaintTheme.test.ts b/packages/app-tests/dataGridPaintTheme.test.ts
index aadf42e029..748af350de 100644
--- a/packages/app-tests/dataGridPaintTheme.test.ts
+++ b/packages/app-tests/dataGridPaintTheme.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { resolveDataGridPaintTheme } from "../../apps/desktop/src/lib/dataGridPaintTheme.ts";
test("canvas grid paint theme falls back from advanced CSS colors", () => {
diff --git a/packages/app-tests/dataGridSaveUi.test.ts b/packages/app-tests/dataGridSaveUi.test.ts
index a40bcedb92..6b74bb327c 100644
--- a/packages/app-tests/dataGridSaveUi.test.ts
+++ b/packages/app-tests/dataGridSaveUi.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { dataGridSaveActionMode, dataGridSaveToolbarState } from "../../apps/desktop/src/lib/dataGridSaveUi.ts";
test("uses concise save and commit labels for the primary grid save action", () => {
diff --git a/packages/app-tests/dataGridScrollGutter.test.ts b/packages/app-tests/dataGridScrollGutter.test.ts
index 584477db94..fdc40a1264 100644
--- a/packages/app-tests/dataGridScrollGutter.test.ts
+++ b/packages/app-tests/dataGridScrollGutter.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { dataGridHeaderContentWidth, scrollbarGutterWidth } from "../../apps/desktop/src/lib/dataGridScrollGutter.ts";
test("calculates scrollbar gutter from element dimensions", () => {
diff --git a/packages/app-tests/dataGridSearchSplit.test.ts b/packages/app-tests/dataGridSearchSplit.test.ts
index a3cdc5bfd1..8f913425f1 100644
--- a/packages/app-tests/dataGridSearchSplit.test.ts
+++ b/packages/app-tests/dataGridSearchSplit.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
clampSearchSplitWidth,
DEFAULT_SEARCH_SPLIT_RATIO,
diff --git a/packages/app-tests/dataGridSelection.test.ts b/packages/app-tests/dataGridSelection.test.ts
index 49dc4d6be6..509758e81c 100644
--- a/packages/app-tests/dataGridSelection.test.ts
+++ b/packages/app-tests/dataGridSelection.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { computed, ref } from "vue";
import { useDataGridSelection } from "../../apps/desktop/src/composables/useDataGridSelection.ts";
diff --git a/packages/app-tests/dataGridSort.test.ts b/packages/app-tests/dataGridSort.test.ts
index 2367c2cc9a..9db24e1631 100644
--- a/packages/app-tests/dataGridSort.test.ts
+++ b/packages/app-tests/dataGridSort.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { nextDataGridSortState } from "../../apps/desktop/src/lib/dataGridSort.ts";
test("cycles data grid header sort through asc, desc, and clear", () => {
diff --git a/packages/app-tests/dataGridTemporalEditor.test.ts b/packages/app-tests/dataGridTemporalEditor.test.ts
index 6bc2de2561..4269ab1d76 100644
--- a/packages/app-tests/dataGridTemporalEditor.test.ts
+++ b/packages/app-tests/dataGridTemporalEditor.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
formatTemporalInputValue,
parseTemporalInputValue,
diff --git a/packages/app-tests/dataGridTranspose.test.ts b/packages/app-tests/dataGridTranspose.test.ts
index bbfb7da91f..40d834d4ed 100644
--- a/packages/app-tests/dataGridTranspose.test.ts
+++ b/packages/app-tests/dataGridTranspose.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildTransposeRows,
buildVisibleTransposeRows,
diff --git a/packages/app-tests/databaseCapabilities.test.ts b/packages/app-tests/databaseCapabilities.test.ts
index 4eb4fc2068..aaed180bf0 100644
--- a/packages/app-tests/databaseCapabilities.test.ts
+++ b/packages/app-tests/databaseCapabilities.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
SCHEMA_AWARE_TYPES,
TREE_SCHEMA_TYPES,
diff --git a/packages/app-tests/databaseExportSelection.test.ts b/packages/app-tests/databaseExportSelection.test.ts
index ce36afcadc..844b8609ec 100644
--- a/packages/app-tests/databaseExportSelection.test.ts
+++ b/packages/app-tests/databaseExportSelection.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildSelectedTablesPayload } from "../../apps/desktop/src/lib/databaseExportSelection.ts";
test("omits selected table payload when every table is selected", () => {
diff --git a/packages/app-tests/databaseOptionSearch.test.ts b/packages/app-tests/databaseOptionSearch.test.ts
index 3827e52150..bea2e06e61 100644
--- a/packages/app-tests/databaseOptionSearch.test.ts
+++ b/packages/app-tests/databaseOptionSearch.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { filterDatabaseOptions } from "../../apps/desktop/src/lib/databaseOptionSearch.ts";
test("returns all database options when the search query is empty", () => {
diff --git a/packages/app-tests/databaseOptions.test.ts b/packages/app-tests/databaseOptions.test.ts
index 6991634174..3a2b373f21 100644
--- a/packages/app-tests/databaseOptions.test.ts
+++ b/packages/app-tests/databaseOptions.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { databaseOptionsForConnection } from "../../apps/desktop/src/composables/useDatabaseOptions.ts";
test("tree-schema connections include the default database when no catalogs are returned", () => {
diff --git a/packages/app-tests/databaseSearch.test.ts b/packages/app-tests/databaseSearch.test.ts
index f4324c2050..61d4f070b4 100644
--- a/packages/app-tests/databaseSearch.test.ts
+++ b/packages/app-tests/databaseSearch.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import type { ColumnInfo } from "../../apps/desktop/src/types/database.ts";
import { findMatchedSearchColumns, isNumericSearchColumn, isTextSearchColumn } from "../../apps/desktop/src/lib/databaseSearch.ts";
diff --git a/packages/app-tests/databaseTree.test.ts b/packages/app-tests/databaseTree.test.ts
index 3aa7b8750c..9d56644476 100644
--- a/packages/app-tests/databaseTree.test.ts
+++ b/packages/app-tests/databaseTree.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
buildDatabaseTreeNodes,
buildDuckDbConnectionTreeNodes,
diff --git a/packages/app-tests/defaultDatabase.test.ts b/packages/app-tests/defaultDatabase.test.ts
index 4a54ebd33c..71933562fd 100644
--- a/packages/app-tests/defaultDatabase.test.ts
+++ b/packages/app-tests/defaultDatabase.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { isDefaultDatabase, resolveDefaultDatabase } from "../../apps/desktop/src/lib/defaultDatabase.ts";
test("优先使用连接上已保存的默认数据库", () => {
diff --git a/packages/app-tests/diagramSvgExport.test.ts b/packages/app-tests/diagramSvgExport.test.ts
index d7d982b87f..81e1276bed 100644
--- a/packages/app-tests/diagramSvgExport.test.ts
+++ b/packages/app-tests/diagramSvgExport.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildEngineeringDiagram } from "../../apps/desktop/src/lib/engineeringDiagram.ts";
import {
buildEngineeringDiagramSvg,
diff --git a/packages/app-tests/diagramZoom.test.ts b/packages/app-tests/diagramZoom.test.ts
index 664ec79d32..472754bf43 100644
--- a/packages/app-tests/diagramZoom.test.ts
+++ b/packages/app-tests/diagramZoom.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
clampDiagramZoom,
zoomFromGestureScale,
diff --git a/packages/app-tests/driverInstallProgressUi.test.ts b/packages/app-tests/driverInstallProgressUi.test.ts
index 028420c3a3..a0a8d6d392 100644
--- a/packages/app-tests/driverInstallProgressUi.test.ts
+++ b/packages/app-tests/driverInstallProgressUi.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
addDriverInstallQueue,
diff --git a/packages/app-tests/driverRuntimePresentation.test.ts b/packages/app-tests/driverRuntimePresentation.test.ts
index 412373a44a..53a4d20798 100644
--- a/packages/app-tests/driverRuntimePresentation.test.ts
+++ b/packages/app-tests/driverRuntimePresentation.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
formatRuntimeBytes,
diff --git a/packages/app-tests/editorThemeResolution.test.ts b/packages/app-tests/editorThemeResolution.test.ts
index a8fd511581..39141f0736 100644
--- a/packages/app-tests/editorThemeResolution.test.ts
+++ b/packages/app-tests/editorThemeResolution.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { resolveEditorTheme } from "../../apps/desktop/src/lib/editorThemes.ts";
test("editor theme follows the resolved app appearance when configured to follow app theme", () => {
diff --git a/packages/app-tests/editorZoom.test.ts b/packages/app-tests/editorZoom.test.ts
index b3b7596700..516dfc1553 100644
--- a/packages/app-tests/editorZoom.test.ts
+++ b/packages/app-tests/editorZoom.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
clampEditorFontSize,
createEditorZoomCommitScheduler,
diff --git a/packages/app-tests/elasticsearchCompletion.test.ts b/packages/app-tests/elasticsearchCompletion.test.ts
index de21927d07..4327921489 100644
--- a/packages/app-tests/elasticsearchCompletion.test.ts
+++ b/packages/app-tests/elasticsearchCompletion.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildElasticsearchCompletionItems,
getElasticsearchCompletionContext,
diff --git a/packages/app-tests/engineeringDiagram.test.ts b/packages/app-tests/engineeringDiagram.test.ts
index a1da86cba6..365fd18793 100644
--- a/packages/app-tests/engineeringDiagram.test.ts
+++ b/packages/app-tests/engineeringDiagram.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildEngineeringDiagram } from "../../apps/desktop/src/lib/engineeringDiagram.ts";
import type { DiagramRelationship, DiagramTable } from "../../apps/desktop/src/lib/erDiagram.ts";
diff --git a/packages/app-tests/erDiagram.test.ts b/packages/app-tests/erDiagram.test.ts
index b3a4fb4451..3aa80e38aa 100644
--- a/packages/app-tests/erDiagram.test.ts
+++ b/packages/app-tests/erDiagram.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildDiagramRelationships,
filterDiagramTables,
diff --git a/packages/app-tests/fieldLineage.test.ts b/packages/app-tests/fieldLineage.test.ts
index 5d345df663..e23bfac8ee 100644
--- a/packages/app-tests/fieldLineage.test.ts
+++ b/packages/app-tests/fieldLineage.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { analyzeFieldLineage, identifierInSql, summarizeLineageCounts } from "../../apps/desktop/src/lib/fieldLineage.ts";
test("detects outgoing and incoming foreign key lineage as certain", () => {
diff --git a/packages/app-tests/gridRowStatus.test.ts b/packages/app-tests/gridRowStatus.test.ts
index d6a60a99f7..4ace59197f 100644
--- a/packages/app-tests/gridRowStatus.test.ts
+++ b/packages/app-tests/gridRowStatus.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { matchesRowStatusFilter, rowStatusFilterAfterAddingRow, type RowStatus } from "../../apps/desktop/src/lib/gridRowStatus.ts";
const statuses: RowStatus[] = ["clean", "edited", "new", "deleted"];
diff --git a/packages/app-tests/gridSelection.test.ts b/packages/app-tests/gridSelection.test.ts
index d52939e734..9203c85a3c 100644
--- a/packages/app-tests/gridSelection.test.ts
+++ b/packages/app-tests/gridSelection.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
allCellsSelectionRange,
columnSelectionRange,
diff --git a/packages/app-tests/historyActions.test.ts b/packages/app-tests/historyActions.test.ts
index 8dff1da88b..3de7e4bf24 100644
--- a/packages/app-tests/historyActions.test.ts
+++ b/packages/app-tests/historyActions.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { shouldDeleteHistoryEntry, shouldClearHistory } from "../../apps/desktop/src/lib/historyActions.ts";
test("requires confirmation before deleting history entries", () => {
diff --git a/packages/app-tests/historyActivityKind.test.ts b/packages/app-tests/historyActivityKind.test.ts
index f15e4c5b7e..3e6b69a4bc 100644
--- a/packages/app-tests/historyActivityKind.test.ts
+++ b/packages/app-tests/historyActivityKind.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { resolveHistoryActivityKind } from "../../apps/desktop/src/lib/historyActivityKind.ts";
test("legacy INSERT history entries are treated as data changes", () => {
diff --git a/packages/app-tests/historyAiAnalysis.test.ts b/packages/app-tests/historyAiAnalysis.test.ts
index 9ca7c9c1b0..c901755c5c 100644
--- a/packages/app-tests/historyAiAnalysis.test.ts
+++ b/packages/app-tests/historyAiAnalysis.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildHistoryAiAnalysisPrompt,
canRollbackHistoryEntry,
diff --git a/packages/app-tests/historyVirtualList.test.ts b/packages/app-tests/historyVirtualList.test.ts
index 84f0ddad3f..ce62ab4e69 100644
--- a/packages/app-tests/historyVirtualList.test.ts
+++ b/packages/app-tests/historyVirtualList.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
HISTORY_ROW_HEIGHT,
HISTORY_SCROLL_BUFFER,
diff --git a/packages/app-tests/i18nLocale.test.ts b/packages/app-tests/i18nLocale.test.ts
index 7adb9ffa9a..46532b86f3 100644
--- a/packages/app-tests/i18nLocale.test.ts
+++ b/packages/app-tests/i18nLocale.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
detectLocaleFromLanguages,
localeFromLanguageTag,
diff --git a/packages/app-tests/imagePreviewViewer.test.ts b/packages/app-tests/imagePreviewViewer.test.ts
index 914a4f6835..a570d680d4 100644
--- a/packages/app-tests/imagePreviewViewer.test.ts
+++ b/packages/app-tests/imagePreviewViewer.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
imagePreviewFitScale,
clampImagePreviewScale,
diff --git a/packages/app-tests/jdbcDialect.test.ts b/packages/app-tests/jdbcDialect.test.ts
index b4c3e7d5e8..b617492938 100644
--- a/packages/app-tests/jdbcDialect.test.ts
+++ b/packages/app-tests/jdbcDialect.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
connectionObjectTreeNodeSchema,
connectionObjectTreeQuerySchema,
diff --git a/packages/app-tests/jdbcPluginRelease.test.ts b/packages/app-tests/jdbcPluginRelease.test.ts
index a96b7bd8e5..e6a92efb09 100644
--- a/packages/app-tests/jdbcPluginRelease.test.ts
+++ b/packages/app-tests/jdbcPluginRelease.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { evaluateJdbcPluginReleaseBump } from "../../.github/scripts/bump-jdbc-plugin-version.mjs";
import { evaluateJdbcPluginVersionChange } from "../../.github/scripts/check-jdbc-plugin-version.mjs";
import { augmentLatestJsonWithJdbcPlugin } from "../../.github/scripts/augment-latest-json-jdbc-plugin.mjs";
diff --git a/packages/app-tests/keyboardShortcuts.test.ts b/packages/app-tests/keyboardShortcuts.test.ts
index c951bae17a..db7a4077e6 100644
--- a/packages/app-tests/keyboardShortcuts.test.ts
+++ b/packages/app-tests/keyboardShortcuts.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
eventToShortcut,
isBrowserReloadShortcut,
diff --git a/packages/app-tests/mongoConnectionOptions.test.ts b/packages/app-tests/mongoConnectionOptions.test.ts
index 6c2e5895bc..ec428d1e9e 100644
--- a/packages/app-tests/mongoConnectionOptions.test.ts
+++ b/packages/app-tests/mongoConnectionOptions.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
mongoUrlParam,
setMongoUrlParam,
diff --git a/packages/app-tests/mongoShellCommand.test.ts b/packages/app-tests/mongoShellCommand.test.ts
index a5c898e984..ce92d40da2 100644
--- a/packages/app-tests/mongoShellCommand.test.ts
+++ b/packages/app-tests/mongoShellCommand.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
evaluateMongoAggregateSafety,
mongoAggregateWriteStage,
diff --git a/packages/app-tests/newQueryContext.test.ts b/packages/app-tests/newQueryContext.test.ts
index d25d099860..15b081a2bf 100644
--- a/packages/app-tests/newQueryContext.test.ts
+++ b/packages/app-tests/newQueryContext.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { resolveNewQueryTarget } from "../../apps/desktop/src/lib/newQueryContext.ts";
import type { ConnectionConfig, QueryTab, TreeNode } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/objectBrowserRows.test.ts b/packages/app-tests/objectBrowserRows.test.ts
index b745c2d8fe..fc12150e5d 100644
--- a/packages/app-tests/objectBrowserRows.test.ts
+++ b/packages/app-tests/objectBrowserRows.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildObjectBrowserRows,
filterObjectBrowserRows,
diff --git a/packages/app-tests/objectRenameSql.test.ts b/packages/app-tests/objectRenameSql.test.ts
index d92c7323f9..675bcfb2f4 100644
--- a/packages/app-tests/objectRenameSql.test.ts
+++ b/packages/app-tests/objectRenameSql.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { supportsObjectRename } from "../../apps/desktop/src/lib/objectRenameSql.ts";
test("recognizes object rename support for UI affordances", () => {
diff --git a/packages/app-tests/objectSourceEditor.test.ts b/packages/app-tests/objectSourceEditor.test.ts
index b8c1051323..40af8b9fbf 100644
--- a/packages/app-tests/objectSourceEditor.test.ts
+++ b/packages/app-tests/objectSourceEditor.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { objectSourceSaveExecutionMode, supportsSourceBackedRoutineRename } from "../../apps/desktop/src/lib/objectSourceEditor.ts";
test("object source saves use single statement execution mode", () => {
diff --git a/packages/app-tests/openTabsPersistence.test.ts b/packages/app-tests/openTabsPersistence.test.ts
index ba53e0c628..1a8f722a2e 100644
--- a/packages/app-tests/openTabsPersistence.test.ts
+++ b/packages/app-tests/openTabsPersistence.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { restoreOpenTabsState, serializeOpenTabs } from "../../apps/desktop/src/lib/openTabsPersistence.ts";
import type { QueryTab } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/pinnedItems.test.ts b/packages/app-tests/pinnedItems.test.ts
index 287017308f..05a216e3f8 100644
--- a/packages/app-tests/pinnedItems.test.ts
+++ b/packages/app-tests/pinnedItems.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { applyPinnedTreeNodeState, orderPinnedFirst } from "../../apps/desktop/src/lib/pinnedItems.ts";
import type { TreeNode } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/pinnedTreeNodeIds.test.ts b/packages/app-tests/pinnedTreeNodeIds.test.ts
index 00c4ecf3b0..4515c03354 100644
--- a/packages/app-tests/pinnedTreeNodeIds.test.ts
+++ b/packages/app-tests/pinnedTreeNodeIds.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { prunePinnedTreeNodeIdsForConnection } from "../../apps/desktop/src/lib/pinnedTreeNodeIds.ts";
diff --git a/packages/app-tests/queryEditorTableDrop.test.ts b/packages/app-tests/queryEditorTableDrop.test.ts
index 49bbb45935..01c8833679 100644
--- a/packages/app-tests/queryEditorTableDrop.test.ts
+++ b/packages/app-tests/queryEditorTableDrop.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
DBX_TABLE_REFERENCE_MIME,
activeTableReferencePayloadValue,
diff --git a/packages/app-tests/queryExecutionState.test.ts b/packages/app-tests/queryExecutionState.test.ts
index f85b42311d..4415887079 100644
--- a/packages/app-tests/queryExecutionState.test.ts
+++ b/packages/app-tests/queryExecutionState.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { canCancelQueryExecution, queryExecutionLabelKey } from "../../apps/desktop/src/lib/queryExecutionState.ts";
test("only allows cancelling an active execution with an execution id", () => {
diff --git a/packages/app-tests/queryStore.test.ts b/packages/app-tests/queryStore.test.ts
index 5222820e84..f68cee19a8 100644
--- a/packages/app-tests/queryStore.test.ts
+++ b/packages/app-tests/queryStore.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { createPinia, setActivePinia } from "pinia";
import { isReactive } from "vue";
import { useConnectionStore } from "../../apps/desktop/src/stores/connectionStore.ts";
diff --git a/packages/app-tests/queryTimeout.test.ts b/packages/app-tests/queryTimeout.test.ts
index 1947eb4eae..a3894eaa79 100644
--- a/packages/app-tests/queryTimeout.test.ts
+++ b/packages/app-tests/queryTimeout.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { DEFAULT_QUERY_TIMEOUT_SECS, queryTimeoutSecsForConnection } from "../../apps/desktop/src/lib/queryTimeout.ts";
test("uses default query timeout when connection has no setting", () => {
diff --git a/packages/app-tests/redisCommandSafety.test.ts b/packages/app-tests/redisCommandSafety.test.ts
index d04fdfecb0..0b1dcf38b8 100644
--- a/packages/app-tests/redisCommandSafety.test.ts
+++ b/packages/app-tests/redisCommandSafety.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { classifyRedisCommandSafety, firstRedisCommandToken } from "../../apps/desktop/src/lib/redisCommandSafety.ts";
diff --git a/packages/app-tests/redisCommandSession.test.ts b/packages/app-tests/redisCommandSession.test.ts
index 33987cd7ff..9bcd19ab01 100644
--- a/packages/app-tests/redisCommandSession.test.ts
+++ b/packages/app-tests/redisCommandSession.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
isRedisClearScreenCommand,
nextRedisCommandDb,
diff --git a/packages/app-tests/redisKeyPattern.test.ts b/packages/app-tests/redisKeyPattern.test.ts
index 794daa17f1..b9f7a21961 100644
--- a/packages/app-tests/redisKeyPattern.test.ts
+++ b/packages/app-tests/redisKeyPattern.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { escapeRedisGlobText, redisKeySearchPattern } from "../../apps/desktop/src/lib/redisKeyPattern.ts";
test("builds Redis key fuzzy search patterns from plain text", () => {
diff --git a/packages/app-tests/redisKeyTree.test.ts b/packages/app-tests/redisKeyTree.test.ts
index 1df5ab5d6a..857beecc7a 100644
--- a/packages/app-tests/redisKeyTree.test.ts
+++ b/packages/app-tests/redisKeyTree.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
buildRedisKeyTree,
diff --git a/packages/app-tests/redisValuePresentation.test.ts b/packages/app-tests/redisValuePresentation.test.ts
index 2755a0e9c3..8594e608b7 100644
--- a/packages/app-tests/redisValuePresentation.test.ts
+++ b/packages/app-tests/redisValuePresentation.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
canEditRedisMemberDetail,
clampRedisMemberDetailSheetWidth,
diff --git a/packages/app-tests/routineExecutionSql.test.ts b/packages/app-tests/routineExecutionSql.test.ts
index 7421e3407b..ee35b8aff9 100644
--- a/packages/app-tests/routineExecutionSql.test.ts
+++ b/packages/app-tests/routineExecutionSql.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildProcedureExecutionSql,
buildProcedureExecutionSqlFromValues,
diff --git a/packages/app-tests/schemaOptions.test.ts b/packages/app-tests/schemaOptions.test.ts
index 5f00038f09..3fac7a1900 100644
--- a/packages/app-tests/schemaOptions.test.ts
+++ b/packages/app-tests/schemaOptions.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { hasSchemaOptionsCacheEntry } from "../../apps/desktop/src/composables/useSchemaOptions.ts";
diff --git a/packages/app-tests/schemaTreeCache.test.ts b/packages/app-tests/schemaTreeCache.test.ts
index 48d9a9119b..70f520d874 100644
--- a/packages/app-tests/schemaTreeCache.test.ts
+++ b/packages/app-tests/schemaTreeCache.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
SCHEMA_TREE_CACHE_TTL_MS,
decodeSchemaTreeCache,
diff --git a/packages/app-tests/settingsStore.test.ts b/packages/app-tests/settingsStore.test.ts
index ce0175a366..9cd7a5f684 100644
--- a/packages/app-tests/settingsStore.test.ts
+++ b/packages/app-tests/settingsStore.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
AI_PROVIDER_PRESETS,
diff --git a/packages/app-tests/sidebarActiveTabTarget.test.ts b/packages/app-tests/sidebarActiveTabTarget.test.ts
index 469c3263b4..9efdd76eb2 100644
--- a/packages/app-tests/sidebarActiveTabTarget.test.ts
+++ b/packages/app-tests/sidebarActiveTabTarget.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
activeTabSidebarTarget,
findSidebarNodeForActiveTab,
diff --git a/packages/app-tests/sidebarConnectionSelection.test.ts b/packages/app-tests/sidebarConnectionSelection.test.ts
index 223bd1c3d4..d687500094 100644
--- a/packages/app-tests/sidebarConnectionSelection.test.ts
+++ b/packages/app-tests/sidebarConnectionSelection.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import { test } from "node:test";
+import { test } from "vitest";
import { selectedConnectionDeleteTargets } from "../../apps/desktop/src/lib/sidebarConnectionSelection.ts";
import type { TreeNode } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/sidebarLayout.test.ts b/packages/app-tests/sidebarLayout.test.ts
index 72b7af5af9..1b71525c51 100644
--- a/packages/app-tests/sidebarLayout.test.ts
+++ b/packages/app-tests/sidebarLayout.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
reconcileLayout,
diff --git a/packages/app-tests/sidebarNodeOrdering.test.ts b/packages/app-tests/sidebarNodeOrdering.test.ts
index 116b8610d3..caf9eb4966 100644
--- a/packages/app-tests/sidebarNodeOrdering.test.ts
+++ b/packages/app-tests/sidebarNodeOrdering.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { sortSidebarTreeChildrenForParent } from "../../apps/desktop/src/lib/sidebarNodeOrdering.ts";
import type { TreeNode } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/sidebarRenameFocus.test.ts b/packages/app-tests/sidebarRenameFocus.test.ts
index f87257a60e..745419ecf6 100644
--- a/packages/app-tests/sidebarRenameFocus.test.ts
+++ b/packages/app-tests/sidebarRenameFocus.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
focusSidebarRenameInput,
diff --git a/packages/app-tests/sidebarSearch.test.ts b/packages/app-tests/sidebarSearch.test.ts
index 728db6722d..d4114c1ec1 100644
--- a/packages/app-tests/sidebarSearch.test.ts
+++ b/packages/app-tests/sidebarSearch.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import { test } from "node:test";
+import { test } from "vitest";
import { matchSidebarLabel } from "../../apps/desktop/src/lib/sidebarSearch.ts";
test("matches exact and prefix labels first", () => {
diff --git a/packages/app-tests/sidebarSearchTree.test.ts b/packages/app-tests/sidebarSearchTree.test.ts
index 21f68de7b1..8a064bc475 100644
--- a/packages/app-tests/sidebarSearchTree.test.ts
+++ b/packages/app-tests/sidebarSearchTree.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
filterSidebarSearchRootsByConnectionState,
filterSidebarTree,
diff --git a/packages/app-tests/sidebarTableNameDisplay.test.ts b/packages/app-tests/sidebarTableNameDisplay.test.ts
index 5f0b769784..9402d81ae6 100644
--- a/packages/app-tests/sidebarTableNameDisplay.test.ts
+++ b/packages/app-tests/sidebarTableNameDisplay.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
normalizeSidebarHiddenTablePrefixes,
diff --git a/packages/app-tests/sidebarTreeItemLayout.test.ts b/packages/app-tests/sidebarTreeItemLayout.test.ts
index 0c97a8da5d..d439e245e6 100644
--- a/packages/app-tests/sidebarTreeItemLayout.test.ts
+++ b/packages/app-tests/sidebarTreeItemLayout.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
canTreeNodeExpand,
canTreeNodeShowExpander,
diff --git a/packages/app-tests/sidebarTreeSelection.test.ts b/packages/app-tests/sidebarTreeSelection.test.ts
index c3b4aac689..dfca11194c 100644
--- a/packages/app-tests/sidebarTreeSelection.test.ts
+++ b/packages/app-tests/sidebarTreeSelection.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
selectedTreeNodesInVisibleOrder,
treeSelectionRangeIdsByIndex,
diff --git a/packages/app-tests/sqlAnalysis.test.ts b/packages/app-tests/sqlAnalysis.test.ts
index b5decc1c3f..a012d10bf9 100644
--- a/packages/app-tests/sqlAnalysis.test.ts
+++ b/packages/app-tests/sqlAnalysis.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
allEditableColumnsWriteable,
allPrimaryKeysPresent,
diff --git a/packages/app-tests/sqlCompletion.test.ts b/packages/app-tests/sqlCompletion.test.ts
index dd9da4b940..bd8e74cfd2 100644
--- a/packages/app-tests/sqlCompletion.test.ts
+++ b/packages/app-tests/sqlCompletion.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildSqlCompletionItems,
getSqlFunctionSignatureHelp,
diff --git a/packages/app-tests/sqlDiagnostics.test.ts b/packages/app-tests/sqlDiagnostics.test.ts
index a2767d4c44..6c4b062413 100644
--- a/packages/app-tests/sqlDiagnostics.test.ts
+++ b/packages/app-tests/sqlDiagnostics.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { parseSqlErrorLocation } from "../../apps/desktop/src/lib/sqlDiagnostics.ts";
test("parses generic line and column error positions", () => {
diff --git a/packages/app-tests/sqlExecutionTarget.test.ts b/packages/app-tests/sqlExecutionTarget.test.ts
index 9e9ffa86e3..a47af2efa2 100644
--- a/packages/app-tests/sqlExecutionTarget.test.ts
+++ b/packages/app-tests/sqlExecutionTarget.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { resolveExecutableSql } from "../../apps/desktop/src/lib/sqlExecutionTarget.ts";
test("uses selected SQL when the editor has a non-empty selection", () => {
diff --git a/packages/app-tests/sqlFileOpen.test.ts b/packages/app-tests/sqlFileOpen.test.ts
index 60ed7628a5..00ee50790f 100644
--- a/packages/app-tests/sqlFileOpen.test.ts
+++ b/packages/app-tests/sqlFileOpen.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { externalSqlFilePaths, isSqlFilePath, sqlFileTitleFromPath } from "../../apps/desktop/src/lib/sqlFileOpen.ts";
test("detects SQL file paths case-insensitively", () => {
diff --git a/packages/app-tests/sqlFormatter.test.ts b/packages/app-tests/sqlFormatter.test.ts
index 934cfca027..fae9de2adf 100644
--- a/packages/app-tests/sqlFormatter.test.ts
+++ b/packages/app-tests/sqlFormatter.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { formatSqlText } from "../../apps/desktop/src/lib/sqlFormatter.ts";
test("formats SQL with uppercase keywords and readable line breaks", async () => {
diff --git a/packages/app-tests/sqlMetadataRefresh.test.ts b/packages/app-tests/sqlMetadataRefresh.test.ts
index bb38b5d9d8..ba9f5557ca 100644
--- a/packages/app-tests/sqlMetadataRefresh.test.ts
+++ b/packages/app-tests/sqlMetadataRefresh.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { sqlMetadataRefreshScope, sqlMetadataRefreshTarget } from "../../apps/desktop/src/lib/sqlMetadataRefresh.ts";
test("database DDL refreshes the connection database list", () => {
diff --git a/packages/app-tests/sqlSemanticDiagnostics.test.ts b/packages/app-tests/sqlSemanticDiagnostics.test.ts
index 787c8b8baa..5d314b00c6 100644
--- a/packages/app-tests/sqlSemanticDiagnostics.test.ts
+++ b/packages/app-tests/sqlSemanticDiagnostics.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildSqlParserErrorDiagnostic,
buildSqlSemanticDiagnostics,
diff --git a/packages/app-tests/sqlServerTree.test.ts b/packages/app-tests/sqlServerTree.test.ts
index 71e8a56b05..a9fb96c94c 100644
--- a/packages/app-tests/sqlServerTree.test.ts
+++ b/packages/app-tests/sqlServerTree.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { buildSqlServerDatabaseTreeNodes } from "../../apps/desktop/src/lib/sqlServerTree.ts";
import type { ObjectInfo } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/sqlserverSemanticDiagnostics.test.ts b/packages/app-tests/sqlserverSemanticDiagnostics.test.ts
index 4a5765c129..25d8d6d672 100644
--- a/packages/app-tests/sqlserverSemanticDiagnostics.test.ts
+++ b/packages/app-tests/sqlserverSemanticDiagnostics.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import { createPinia, setActivePinia } from "pinia";
import { useConnectionStore } from "../../apps/desktop/src/stores/connectionStore.ts";
diff --git a/packages/app-tests/syncChangelog.test.ts b/packages/app-tests/syncChangelog.test.ts
index b2e3cd2639..cc856c1c47 100644
--- a/packages/app-tests/syncChangelog.test.ts
+++ b/packages/app-tests/syncChangelog.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
const syncChangelog = await import("../../.github/scripts/sync-changelog.mjs");
diff --git a/packages/app-tests/tabCloseActions.test.ts b/packages/app-tests/tabCloseActions.test.ts
index 397ca65f78..b84dc2c829 100644
--- a/packages/app-tests/tabCloseActions.test.ts
+++ b/packages/app-tests/tabCloseActions.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { closeAllTabsState, closeOtherTabsState } from "../../apps/desktop/src/lib/tabCloseActions.ts";
test("close other tabs keeps the target tab and makes it active", () => {
diff --git a/packages/app-tests/tabPresentation.test.ts b/packages/app-tests/tabPresentation.test.ts
index 2d49244a2c..23c8258466 100644
--- a/packages/app-tests/tabPresentation.test.ts
+++ b/packages/app-tests/tabPresentation.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { createPinia, setActivePinia } from "pinia";
import { shouldShowTabOverflowControls, tabDisplayTitle } from "../../apps/desktop/src/lib/tabPresentation.ts";
import { useConnectionStore } from "../../apps/desktop/src/stores/connectionStore.ts";
diff --git a/packages/app-tests/tabResultCache.test.ts b/packages/app-tests/tabResultCache.test.ts
index 35e1683c33..8251269f30 100644
--- a/packages/app-tests/tabResultCache.test.ts
+++ b/packages/app-tests/tabResultCache.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
buildTabResultSnapshot,
decodeTabResultSnapshot,
diff --git a/packages/app-tests/tableDataExport.test.ts b/packages/app-tests/tableDataExport.test.ts
index d5171c083e..ccb9a70021 100644
--- a/packages/app-tests/tableDataExport.test.ts
+++ b/packages/app-tests/tableDataExport.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { fetchTableDataForExport, TABLE_DATA_EXPORT_PAGE_SIZE } from "../../apps/desktop/src/lib/tableDataExport.ts";
import type { QueryResult } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/tableDataTabMeta.test.ts b/packages/app-tests/tableDataTabMeta.test.ts
index ec9cc05ab4..503e79d47d 100644
--- a/packages/app-tests/tableDataTabMeta.test.ts
+++ b/packages/app-tests/tableDataTabMeta.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { tableMetaForDataTab } from "../../apps/desktop/src/lib/tableDataTabMeta.ts";
import type { QueryTab } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/tableEditing.test.ts b/packages/app-tests/tableEditing.test.ts
index 4bcc048114..c7aa2f724b 100644
--- a/packages/app-tests/tableEditing.test.ts
+++ b/packages/app-tests/tableEditing.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
DBX_NEO4J_ELEMENT_ID_COLUMN,
DBX_ROWID_COLUMN,
diff --git a/packages/app-tests/tableImport.test.ts b/packages/app-tests/tableImport.test.ts
index 555f0d9b00..229b321847 100644
--- a/packages/app-tests/tableImport.test.ts
+++ b/packages/app-tests/tableImport.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
autoMapImportColumns,
normalizeImportColumnName,
diff --git a/packages/app-tests/tableSelectSql.test.ts b/packages/app-tests/tableSelectSql.test.ts
index 236b7e40fc..aa057792ba 100644
--- a/packages/app-tests/tableSelectSql.test.ts
+++ b/packages/app-tests/tableSelectSql.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { qualifiedTableName, quoteTableIdentifier } from "../../apps/desktop/src/lib/tableSelectSql.ts";
test("JDBC table identifiers avoid double quotes for Kyuubi-compatible names", () => {
diff --git a/packages/app-tests/tableStructureCapabilities.test.ts b/packages/app-tests/tableStructureCapabilities.test.ts
index e12c991858..a4a493c680 100644
--- a/packages/app-tests/tableStructureCapabilities.test.ts
+++ b/packages/app-tests/tableStructureCapabilities.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
canEditTableStructure,
getTableStructureCapabilities,
diff --git a/packages/app-tests/tableStructureEditorState.test.ts b/packages/app-tests/tableStructureEditorState.test.ts
index 0196777bf3..64e1bc7a02 100644
--- a/packages/app-tests/tableStructureEditorState.test.ts
+++ b/packages/app-tests/tableStructureEditorState.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
buildStructureTargetLabel,
combineDataTypeForDatabase,
diff --git a/packages/app-tests/tableTree.test.ts b/packages/app-tests/tableTree.test.ts
index cbe27a80f8..a5b795d149 100644
--- a/packages/app-tests/tableTree.test.ts
+++ b/packages/app-tests/tableTree.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
buildGroupedObjectTreeNodes,
diff --git a/packages/app-tests/tauriRuntime.test.ts b/packages/app-tests/tauriRuntime.test.ts
index 2db27fe6f2..a134085b62 100644
--- a/packages/app-tests/tauriRuntime.test.ts
+++ b/packages/app-tests/tauriRuntime.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { isTauriRuntime } from "../../apps/desktop/src/lib/tauriRuntime.ts";
test("detects plain browser-like globals as non-Tauri runtime", () => {
diff --git a/packages/app-tests/transferProgressState.test.ts b/packages/app-tests/transferProgressState.test.ts
index f12fcd8509..f816031d4c 100644
--- a/packages/app-tests/transferProgressState.test.ts
+++ b/packages/app-tests/transferProgressState.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { nextTransferTerminalState } from "../../apps/desktop/src/lib/transferProgressState.ts";
test("does not mark transfer as failed when only a table progress event reports error", () => {
diff --git a/packages/app-tests/treeNodeClick.test.ts b/packages/app-tests/treeNodeClick.test.ts
index a0a6aeb782..73f8583c26 100644
--- a/packages/app-tests/treeNodeClick.test.ts
+++ b/packages/app-tests/treeNodeClick.test.ts
@@ -1,4 +1,4 @@
-import test from "node:test";
+import { test } from "vitest";
import assert from "node:assert/strict";
import {
copyNameForTreeNode,
diff --git a/packages/app-tests/treeNodeContext.test.ts b/packages/app-tests/treeNodeContext.test.ts
index 72cacb7942..9538f5675b 100644
--- a/packages/app-tests/treeNodeContext.test.ts
+++ b/packages/app-tests/treeNodeContext.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
hasTreeNodeDatabaseContext,
normalizeCataloglessDatabaseNodes,
diff --git a/packages/app-tests/treeRefreshTarget.test.ts b/packages/app-tests/treeRefreshTarget.test.ts
index fb88b3c358..8b6ea0f2ac 100644
--- a/packages/app-tests/treeRefreshTarget.test.ts
+++ b/packages/app-tests/treeRefreshTarget.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { findDatabaseTreeNode } from "../../apps/desktop/src/lib/treeRefreshTarget.ts";
import type { TreeNode } from "../../apps/desktop/src/types/database.ts";
diff --git a/packages/app-tests/useFlatTree.test.ts b/packages/app-tests/useFlatTree.test.ts
index e1e3bc8a4f..678463a913 100644
--- a/packages/app-tests/useFlatTree.test.ts
+++ b/packages/app-tests/useFlatTree.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
SIDEBAR_TREE_ROW_HEIGHT,
SIDEBAR_TREE_PRERENDER_COUNT,
diff --git a/packages/app-tests/useSqlExecution.test.ts b/packages/app-tests/useSqlExecution.test.ts
index cd98405ece..4cfe14c24d 100644
--- a/packages/app-tests/useSqlExecution.test.ts
+++ b/packages/app-tests/useSqlExecution.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { isDangerousSql, stripSqlComments } from "../../apps/desktop/src/composables/useSqlExecution.ts";
test("stripSqlComments removes block comments", () => {
diff --git a/packages/app-tests/visibleDatabases.test.ts b/packages/app-tests/visibleDatabases.test.ts
index d97d9223a6..01c11f0291 100644
--- a/packages/app-tests/visibleDatabases.test.ts
+++ b/packages/app-tests/visibleDatabases.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import {
filterDatabaseNamesForConnection,
filterVisibleDatabaseNames,
diff --git a/packages/app-tests/windowControlsFullscreenInset.test.ts b/packages/app-tests/windowControlsFullscreenInset.test.ts
index c4e38387da..e65530b436 100644
--- a/packages/app-tests/windowControlsFullscreenInset.test.ts
+++ b/packages/app-tests/windowControlsFullscreenInset.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import * as windowControlsModule from "../../apps/desktop/src/composables/useWindowControls.ts";
test("mac traffic-light inset is removed in fullscreen", () => {
diff --git a/packages/app-tests/xlsxExport.test.ts b/packages/app-tests/xlsxExport.test.ts
index fb91f59ffa..2621505dc9 100644
--- a/packages/app-tests/xlsxExport.test.ts
+++ b/packages/app-tests/xlsxExport.test.ts
@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
-import test from "node:test";
+import { test } from "vitest";
import { buildXlsxWorkbook } from "../../apps/desktop/src/lib/xlsxExport.ts";
test("builds an xlsx workbook zip with worksheet data", () => {
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 46df6af069..6ff9e49b5c 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -14,7 +14,7 @@
],
"scripts": {
"start": "tsx src/cli.ts",
- "test": "pnpm --filter @dbx-app/node-core build && tsx --test tests/*.test.ts",
+ "test": "pnpm --filter @dbx-app/node-core build && vitest run --config vitest.config.ts",
"build": "pnpm --filter @dbx-app/node-core build && tsc",
"prepublishOnly": "tsc"
},
diff --git a/packages/cli/tests/bin.test.ts b/packages/cli/tests/bin.test.ts
index 96e6f535cf..159630a459 100644
--- a/packages/cli/tests/bin.test.ts
+++ b/packages/cli/tests/bin.test.ts
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
import { spawnSync } from "node:child_process";
-import test from "node:test";
+import { test } from "vitest";
const packageDir = fileURLToPath(new URL("..", import.meta.url));
const cliSource = fileURLToPath(new URL("../src/cli.ts", import.meta.url));
diff --git a/packages/cli/tests/cli-format.test.ts b/packages/cli/tests/cli-format.test.ts
index e5926c74fa..3b8d389c73 100644
--- a/packages/cli/tests/cli-format.test.ts
+++ b/packages/cli/tests/cli-format.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import type { ConnectionConfig } from "@dbx-app/node-core";
import { connectionSummary, csvTable, errorPayload, formatCell, formatErrorMessage, mdTable } from "../src/cli-format.js";
diff --git a/packages/cli/tests/cli.test.ts b/packages/cli/tests/cli.test.ts
index 2204486823..b1cd7a6d20 100644
--- a/packages/cli/tests/cli.test.ts
+++ b/packages/cli/tests/cli.test.ts
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import test from "node:test";
+import { test } from "vitest";
import type { Backend, ConnectionConfig, DbxDiagnostics } from "@dbx-app/node-core";
import { runCli } from "../src/cli.js";
diff --git a/packages/cli/vitest.config.ts b/packages/cli/vitest.config.ts
new file mode 100644
index 0000000000..4cfb6392fe
--- /dev/null
+++ b/packages/cli/vitest.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ include: ["tests/*.test.ts"],
+ },
+});
diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json
index abe857b303..3a7ed01f01 100644
--- a/packages/mcp-server/package.json
+++ b/packages/mcp-server/package.json
@@ -17,7 +17,7 @@
],
"scripts": {
"start": "tsx src/index.ts",
- "test": "pnpm --filter @dbx-app/mcp-server build && tsx --test tests/*.test.ts",
+ "test": "pnpm --filter @dbx-app/mcp-server build && vitest run --config vitest.config.ts",
"build": "pnpm --filter @dbx-app/node-core build && tsc",
"prepublishOnly": "tsc"
},
diff --git a/packages/mcp-server/tests/bin.test.ts b/packages/mcp-server/tests/bin.test.ts
index 9aea4c183f..1d27c0609b 100644
--- a/packages/mcp-server/tests/bin.test.ts
+++ b/packages/mcp-server/tests/bin.test.ts
@@ -4,7 +4,7 @@ import { mkdtemp, rm, symlink } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
-import test from "node:test";
+import { test } from "vitest";
const packageDir = fileURLToPath(new URL("..", import.meta.url));
const mcpBin = fileURLToPath(new URL("../dist/index.js", import.meta.url));
diff --git a/packages/mcp-server/tests/driver-manifest.test.ts b/packages/mcp-server/tests/driver-manifest.test.ts
index 36401f6634..357de95f83 100644
--- a/packages/mcp-server/tests/driver-manifest.test.ts
+++ b/packages/mcp-server/tests/driver-manifest.test.ts
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
-import test from "node:test";
+import { test } from "vitest";
import { DBX_CONNECTION_TYPE_DESCRIPTION } from "../src/index.js";
interface DriverManifest {
diff --git a/packages/mcp-server/tests/server.test.ts b/packages/mcp-server/tests/server.test.ts
index 23ec8902ca..94867fb607 100644
--- a/packages/mcp-server/tests/server.test.ts
+++ b/packages/mcp-server/tests/server.test.ts
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import test from "node:test";
+import { test } from "vitest";
import type { Backend, ConnectionConfig } from "@dbx-app/node-core";
import { createDbxMcpServer, DBX_MCP_PACKAGE_VERSION } from "../src/index.js";
diff --git a/packages/mcp-server/vitest.config.ts b/packages/mcp-server/vitest.config.ts
new file mode 100644
index 0000000000..4cfb6392fe
--- /dev/null
+++ b/packages/mcp-server/vitest.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ include: ["tests/*.test.ts"],
+ },
+});
diff --git a/packages/node-core/package.json b/packages/node-core/package.json
index 8d4fc4bf8e..7c73cd9f95 100644
--- a/packages/node-core/package.json
+++ b/packages/node-core/package.json
@@ -23,7 +23,7 @@
"./sql-safety": "./dist/sql-safety.js"
},
"scripts": {
- "test": "tsx --test tests/*.test.ts",
+ "test": "vitest run --config vitest.config.ts",
"build": "tsc",
"prepublishOnly": "tsc"
},
diff --git a/packages/node-core/tests/connection-store.test.ts b/packages/node-core/tests/connection-store.test.ts
index 32fc131645..77aaf9405c 100644
--- a/packages/node-core/tests/connection-store.test.ts
+++ b/packages/node-core/tests/connection-store.test.ts
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import test from "node:test";
+import { test } from "vitest";
import Database from "better-sqlite3";
import { inspectConnectionStore, loadConnections } from "../src/connections.js";
diff --git a/packages/node-core/tests/driver-manifest.test.ts b/packages/node-core/tests/driver-manifest.test.ts
index dd59a4f96f..7d9a226776 100644
--- a/packages/node-core/tests/driver-manifest.test.ts
+++ b/packages/node-core/tests/driver-manifest.test.ts
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
-import test from "node:test";
+import { test } from "vitest";
import { BRIDGE_REQUIRED_TYPES, DIRECT_QUERY_TYPES, isDirectQueryType } from "../src/diagnostics.js";
interface DriverManifest {
diff --git a/packages/node-core/tests/entrypoint.test.ts b/packages/node-core/tests/entrypoint.test.ts
index b0a4237990..fa07918ffb 100644
--- a/packages/node-core/tests/entrypoint.test.ts
+++ b/packages/node-core/tests/entrypoint.test.ts
@@ -3,7 +3,7 @@ import { mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { pathToFileURL } from "node:url";
-import test from "node:test";
+import { test } from "vitest";
import { isMainModule } from "../src/entrypoint.js";
test("matches a module invoked through its real file path", async () => {
diff --git a/packages/node-core/tests/format.test.ts b/packages/node-core/tests/format.test.ts
index 57a8938238..ec3e3bd39e 100644
--- a/packages/node-core/tests/format.test.ts
+++ b/packages/node-core/tests/format.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { formatCell, mdTable } from "../src/format.js";
test("formats markdown tables", () => {
diff --git a/packages/node-core/tests/mongo-query.test.ts b/packages/node-core/tests/mongo-query.test.ts
index 9a5a4bf88d..163b6c22dd 100644
--- a/packages/node-core/tests/mongo-query.test.ts
+++ b/packages/node-core/tests/mongo-query.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import {
executeQuery,
inferMongoColumns,
diff --git a/packages/node-core/tests/rqlite-direct.test.ts b/packages/node-core/tests/rqlite-direct.test.ts
index 543b25d450..306e05f4f8 100644
--- a/packages/node-core/tests/rqlite-direct.test.ts
+++ b/packages/node-core/tests/rqlite-direct.test.ts
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
-import test from "node:test";
+import { test } from "vitest";
import type { ConnectionConfig } from "../src/connections.js";
import { describeTable, executeQuery, listTables } from "../src/database.js";
diff --git a/packages/node-core/tests/schema-context.test.ts b/packages/node-core/tests/schema-context.test.ts
index b45fdd6ba3..072185c520 100644
--- a/packages/node-core/tests/schema-context.test.ts
+++ b/packages/node-core/tests/schema-context.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import type { ConnectionConfig } from "../src/connections.js";
import type { ColumnInfo, TableInfo } from "../src/database.js";
import { buildSchemaContext, formatSchemaContext } from "../src/schema-context.js";
diff --git a/packages/node-core/tests/sql-safety.test.ts b/packages/node-core/tests/sql-safety.test.ts
index 92e1afe9c7..1c331699bf 100644
--- a/packages/node-core/tests/sql-safety.test.ts
+++ b/packages/node-core/tests/sql-safety.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import test from "node:test";
+import { test } from "vitest";
import { evaluateSqlSafety, sqlSafetyFromEnv } from "../src/sql-safety.js";
test("allows read-only SQL by default", () => {
diff --git a/packages/node-core/tests/sqlite-direct.test.ts b/packages/node-core/tests/sqlite-direct.test.ts
index 04c5fd4d72..3de74043a0 100644
--- a/packages/node-core/tests/sqlite-direct.test.ts
+++ b/packages/node-core/tests/sqlite-direct.test.ts
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import test from "node:test";
+import { test } from "vitest";
import Database from "better-sqlite3";
import type { ConnectionConfig } from "../src/connections.js";
import { describeTable, executeQuery, listTables } from "../src/database.js";
diff --git a/packages/node-core/vitest.config.ts b/packages/node-core/vitest.config.ts
new file mode 100644
index 0000000000..4cfb6392fe
--- /dev/null
+++ b/packages/node-core/vitest.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ include: ["tests/*.test.ts"],
+ },
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index cbdccd599a..e1e1ff26b1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -186,6 +186,9 @@ importers:
vite:
specifier: ^8.0.16
+ vitest:
+ specifier: ^4.1.8
vue-tsc:
specifier: ^3.3.3
version: 3.3.3([email protected])
@@ -1305,6 +1308,9 @@ packages:
'@shikijs/[email protected]':
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
+ '@standard-schema/[email protected]':
+ resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
+
resolution: {integrity: sha512-jI/VAmtdjB/RnI8GTnokyX7Ug8c+g+ffD6QRLa6XQewtnGyukKkKSk3wLTM3b5cjt1jNh9x0jfVlagdN2gDKQg==}
@@ -1507,6 +1513,12 @@ packages:
resolution: {integrity: sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
+
resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==}
@@ -1583,6 +1595,35 @@ packages:
vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
vue: ^3.2.25
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-h3nDO677RDLEGlBxyQ5CW8RlMThSKSRLUePLOx09gNIWRL40edgA1GCZSZgf1W55MFAG6/Sw14KeaAnqv0NKdQ==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-LEiN/xe4OSIbKe9HQIp5OC24agGD9J5CnmMgsLohVVoOPWL9a2sBoR6VBx43jQZb7Kr1l4RCuyCJzcAa0+dojw==}
+ peerDependencies:
+ msw: ^2.4.9
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ msw:
+ optional: true
+ vite:
+ optional: true
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-9GasEBxpZ1VYIpqHf/0+YGg121uSNwCKOJqIrTwWP/TB7DmFCiaBpNl3aPZzoLWfWkuqhbH8vJIVobZkvdo2cA==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-EmVxeBAfMJvycdjd6Hm+RbFBbA9fKvo0Kx37hNpBYoYeavH3RNsBXWDooR1mgD52dCrxIIuP7UotpfiwOikvcg==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-acfZboRmAIf05DEKcBQy33VXojFJjtUdLyo7oOmV9kebb2xdU01UknNiPuPZoJZQyO7DF0gZdTGTpeAzET9QPQ==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-6EevtBp6OZOPF7bmz36HrGMeP3txgVSrgebWxHOafDXGkhIzfXK14f8KF6MuFfgXXUeHxmpD3BQxkV00/3s5mA==}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-uOJamYALNhfJ6iolExyQM40yIQwDqYnkKtQ5VCiSe17E33H0aQ/u+1GlRuz4LZBk6Mm3sg90G9hEbmEt37C1Zg==}
+
resolution: {integrity: sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==}
@@ -1728,6 +1769,10 @@ packages:
resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-ZtfIlyTCmnAXPCQo4mSDtFsHL7L3q0sJfpVYPmy5uYPjs+fynzOuc1Cg6yQ9fF6h61RjEWtOlRFwV1Kc80Qs6A==}
engines: {node: '>=4'}
@@ -1829,6 +1874,10 @@ packages:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
+ resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
@@ -2123,6 +2172,9 @@ packages:
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==}
+
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
engines: {node: '>= 0.4'}
@@ -2189,6 +2241,9 @@ packages:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'}
@@ -2216,6 +2271,10 @@ packages:
resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
+ engines: {node: '>=12.0.0'}
+
resolution: {integrity: sha512-NGVYwQSAyEQgzxX1iCM978PP9AdO/hW93gMcF6ZwQCm+rFvLsBH6w4xcXWTcliS8La5EPRN3p9wzItqBwJrfNw==}
engines: {node: '>= 16'}
@@ -2889,6 +2948,10 @@ packages:
resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}
engines: {node: '>= 10'}
+ resolution: {integrity: sha512-AWGB9WFcRXOQs48Z/udjI5ZcZMHXwX8XPByNpOydgcGsDLIzjGizhoMWJyKAWze7AVW/2W1i+/gPX4YtKe5cyg==}
+ engines: {node: '>=12.20.0'}
+
resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}
@@ -3313,6 +3376,9 @@ packages:
resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
+
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
@@ -3381,10 +3447,16 @@ packages:
resolution: {integrity: sha512-HnjdRHlSsO4Ap2erB5YXAvWggrnk/S4TezUn8zmpq9J/hEKn9+6gGaqiKPyDtI10Xf4zJmHYPREGjMjZmmP1fg==}
hasBin: true
+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
+
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
engines: {node: '>= 0.8'}
+ resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==}
+
resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==}
engines: {node: '>=18'}
@@ -3474,6 +3546,9 @@ packages:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+ resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+
resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==}
engines: {node: '>=18'}
@@ -3490,6 +3565,10 @@ packages:
resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}
engines: {node: ^20.0.0 || >=22.0.0}
+ resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}
+ engines: {node: '>=14.0.0'}
+
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
@@ -3653,6 +3732,47 @@ packages:
yaml:
optional: true
+ resolution: {integrity: sha512-flY6ScbCIt9HThs+C5HS7jvGOB560DJtk/Z15IQROTA6zEy49Nh8T/dofWTQL+n3vswqn87sbJNiuqw1SDp5Ig==}
+ engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@opentelemetry/api': ^1.9.0
+ '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 4.1.8
+ '@vitest/browser-preview': 4.1.8
+ '@vitest/browser-webdriverio': 4.1.8
+ '@vitest/coverage-istanbul': 4.1.8
+ '@vitest/coverage-v8': 4.1.8
+ '@vitest/ui': 4.1.8
+ happy-dom: '*'
+ jsdom: '*'
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@opentelemetry/api':
+ optional: true
+ '@types/node':
+ optional: true
+ '@vitest/browser-playwright':
+ optional: true
+ '@vitest/browser-preview':
+ optional: true
+ '@vitest/browser-webdriverio':
+ optional: true
+ '@vitest/coverage-istanbul':
+ optional: true
+ '@vitest/coverage-v8':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+
resolution: {integrity: sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==}
@@ -3728,6 +3848,11 @@ packages:
engines: {node: ^16.13.0 || >=18.0.0}
hasBin: true
+ resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
+ engines: {node: '>=8'}
+ hasBin: true
+
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
engines: {node: '>=0.10.0'}
@@ -4637,6 +4762,8 @@ snapshots:
'@shikijs/[email protected]': {}
+ '@standard-schema/[email protected]': {}
+
dependencies:
tslib: 2.8.1
@@ -4804,6 +4931,13 @@ snapshots:
dependencies:
'@types/node': 22.19.19
+ '@types/[email protected]':
+ dependencies:
+ '@types/deep-eql': 4.0.2
+ assertion-error: 2.0.1
+
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -4917,6 +5051,47 @@ snapshots:
vue: 3.5.35([email protected])
+ '@vitest/[email protected]':
+ dependencies:
+ '@standard-schema/spec': 1.1.0
+ '@types/chai': 5.2.3
+ '@vitest/spy': 4.1.8
+ '@vitest/utils': 4.1.8
+ chai: 6.2.2
+ tinyrainbow: 3.1.0
+
+ dependencies:
+ '@vitest/spy': 4.1.8
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ optionalDependencies:
+
+ '@vitest/[email protected]':
+ dependencies:
+ tinyrainbow: 3.1.0
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/utils': 4.1.8
+ pathe: 2.0.3
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/pretty-format': 4.1.8
+ '@vitest/utils': 4.1.8
+ magic-string: 0.30.21
+ pathe: 2.0.3
+
+ '@vitest/[email protected]': {}
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/pretty-format': 4.1.8
+ convert-source-map: 2.0.0
+ tinyrainbow: 3.1.0
+
dependencies:
'@volar/source-map': 2.4.28
@@ -5121,6 +5296,8 @@ snapshots:
dependencies:
tslib: 2.8.1
+
dependencies:
tslib: 2.8.1
@@ -5233,6 +5410,8 @@ snapshots:
+
@@ -5467,6 +5646,8 @@ snapshots:
+
dependencies:
es-errors: 1.3.0
@@ -5601,6 +5782,10 @@ snapshots:
+ dependencies:
+ '@types/estree': 1.0.9
+
@@ -5627,6 +5812,8 @@ snapshots:
+
dependencies:
express: 5.2.1
@@ -6250,6 +6437,8 @@ snapshots:
+
dependencies:
destr: 2.0.5
@@ -6798,6 +6987,8 @@ snapshots:
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
+
@@ -6856,8 +7047,12 @@ snapshots:
argparse: 2.0.1
nearley: 2.20.1
+
+
@@ -6965,6 +7160,8 @@ snapshots:
+
@@ -6979,6 +7176,8 @@ snapshots:
+
dependencies:
is-number: 7.0.0
@@ -7108,6 +7307,33 @@ snapshots:
tsx: 4.22.4
yaml: 2.8.4
+ dependencies:
+ '@vitest/expect': 4.1.8
+ '@vitest/pretty-format': 4.1.8
+ '@vitest/runner': 4.1.8
+ '@vitest/snapshot': 4.1.8
+ '@vitest/spy': 4.1.8
+ '@vitest/utils': 4.1.8
+ es-module-lexer: 2.1.0
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ obug: 2.1.2
+ pathe: 2.0.3
+ picomatch: 4.0.4
+ std-env: 4.1.0
+ tinybench: 2.9.0
+ tinyexec: 1.1.1
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 25.9.1
+ transitivePeerDependencies:
+ - msw
+
@@ -7202,6 +7428,11 @@ snapshots:
dependencies:
isexe: 3.1.5
+ dependencies:
+ siginfo: 2.0.0
+ stackback: 0.0.2
+
diff --git a/scripts/run-check.mjs b/scripts/run-check.mjs
index 7eb0bf4593..25dab52236 100644
--- a/scripts/run-check.mjs
+++ b/scripts/run-check.mjs
@@ -19,8 +19,8 @@ const tasks = [
},
{
name: "test",
- command: "tsx",
- args: ["--tsconfig", "apps/desktop/tsconfig.json", "--test", "packages/app-tests/*.test.ts"],
+ command: "vitest",
+ args: ["run"],
},
];
diff --git a/vitest.config.ts b/vitest.config.ts
new file mode 100644
index 0000000000..a1e08f6277
--- /dev/null
+++ b/vitest.config.ts
@@ -0,0 +1,20 @@
+import path from "node:path";
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "apps/desktop/src"),
+ },
+ },
+ test: {
+ include: [
+ "packages/app-tests/*.test.ts",
+ "packages/node-core/tests/*.test.ts",
+ "packages/cli/tests/*.test.ts",
+ "packages/mcp-server/tests/*.test.ts",
+ "apps/desktop/src/**/*.spec.ts",
+ "docs/lib/*.test.ts",
+ ],
+ },
+});