From ee8275a8b23ebb276bcba2e628a30b9430555d9c Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 16 Jul 2026 14:55:58 -0400 Subject: [PATCH] test(desktop): port backend-connection-state test to vitest Rebased onto current main, where the electron test harness migrated from node:test to vitest (test:desktop:platforms = `vitest run --project electron`, auto-discovering electron/*.test.ts). Swap the node:test import for vitest and drop the .ts-extension import hack; the obsolete package.json node --test list edit is dropped in the cherry-pick resolution since vitest auto-discovers. Co-authored-by: Gille <4317663+helix4u@users.noreply.github.com> --- apps/desktop/electron/backend-connection-state.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/desktop/electron/backend-connection-state.test.ts b/apps/desktop/electron/backend-connection-state.test.ts index dcec80445038..5520435d3213 100644 --- a/apps/desktop/electron/backend-connection-state.test.ts +++ b/apps/desktop/electron/backend-connection-state.test.ts @@ -1,9 +1,8 @@ import assert from 'node:assert/strict' -import test from 'node:test' -// Node 22's direct TypeScript runner requires the extension on Windows. -// @ts-expect-error The Electron tsconfig intentionally disables TS extension imports. -import { createBackendConnectionState } from './backend-connection-state.ts' +import { test } from 'vitest' + +import { createBackendConnectionState } from './backend-connection-state' type FakeProcess = { id: string }