The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): port gateway-file-download tests to vitest electron project
Teknium03c85a1c7ce5
diff --git a/apps/desktop/electron/gateway-file-download-transport.test.ts b/apps/desktop/electron/gateway-file-download-transport.test.tsindex 2dae653b8b0..8ade7ec2a6b 100644--- a/apps/desktop/electron/gateway-file-download-transport.test.ts+++ b/apps/desktop/electron/gateway-file-download-transport.test.ts@@ -9,9 +9,10 @@import assert from 'node:assert/strict'import fs from 'node:fs'import path from 'node:path'-import test from 'node:test'import { fileURLToPath } from 'node:url'+import { test } from 'vitest'+const __dirname = path.dirname(fileURLToPath(import.meta.url))const source = fs.readFileSync(path.join(__dirname, 'main.ts'), 'utf8')diff --git a/apps/desktop/electron/gateway-file-download.test.ts b/apps/desktop/electron/gateway-file-download.test.tsindex 124cef4dfef..a9d054b1fa6 100644--- a/apps/desktop/electron/gateway-file-download.test.ts+++ b/apps/desktop/electron/gateway-file-download.test.ts@@ -1,6 +1,7 @@import assert from 'node:assert/strict'import { EventEmitter } from 'node:events'-import test from 'node:test'++import { test } from 'vitest'import {filenameFromContentDisposition,