TidGi-Desktop/src/__tests__
lin onetwo 059c488293 fix: resolve AbortSignal realm mismatch in Electron 41 for streaming tests
In Electron 41, ELECTRON_RUN_AS_NODE mode uses Chromium-based fetch which
requires Blink's AbortSignal. Node.js AbortSignal fails the instanceof check.

Fixes:
- vitest.config.ts: set features/** to node environment via environmentMatchGlobs
  so HTTP-only tests use Node.js fetch (not Chromium fetch)
- setup-vitest.ts: guard all document/window access behind typeof document check
  so setup is safe in both jsdom and node environments
- callProviderAPI.ts: no change needed (signal issue is env-specific)
2026-04-01 23:49:37 +08:00
..
__mocks__ Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
__stubs__ Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
security Fix: security errors (#648) 2025-10-24 22:16:03 +08:00
environment.test.ts Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
environment.ts Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
setup-vitest.ts fix: resolve AbortSignal realm mismatch in Electron 41 for streaming tests 2026-04-01 23:49:37 +08:00