mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-04-09 07:11:23 -07:00
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) |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| __stubs__ | ||
| security | ||
| environment.test.ts | ||
| environment.ts | ||
| setup-vitest.ts | ||