test(desktop): run venv-blocker-scan tests under vitest

CI's electron vitest project collects electron/**/*.test.ts; the
node:test-based suite reported 'No test suite found'. Import
describe/it from vitest like sibling electron tests.
This commit is contained in:
Teknium 2026-07-28 14:12:25 -07:00
parent 1dd1c449bb
commit 20e0b26c4e

View file

@ -3,15 +3,15 @@
/**
* Tests for apps/desktop/electron/venv-blocker-scan.ts
*
* Run with: npx tsx --test electron/venv-blocker-scan.test.ts
* (from apps/desktop)
* Run with: npx vitest run electron/venv-blocker-scan.test.ts
* (from apps/desktop; wired into npm test:desktop:platforms)
*/
import assert from 'node:assert/strict'
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import { describe, it } from 'node:test'
import { describe, it } from 'vitest'
import {
formatBlockerMessage,