Trek_CN/client/tests
jubnl 0a408c21ac
fix(tests): restore native AbortController for undici fetch compatibility
jsdom replaces globalThis.AbortController with its own implementation;
Node.js undici-based fetch validates signals via instanceof against the
native AbortSignal, causing fetch to throw before MSW could intercept.

Fix via custom Vitest environment (tests/environment/jsdom-native-abort.ts)
that captures native AbortController/AbortSignal before jsdom patches them
and restores them after jsdom setup.

Also updates JournalBody test 004 to match component behaviour (headings
rendered as <p>) and removes debug console.log statements.
2026-04-14 15:08:55 +02:00
..
environment fix(tests): restore native AbortController for undici fetch compatibility 2026-04-14 15:08:55 +02:00
helpers test: comprehensive Journey test suite — 89.5% new code coverage 2026-04-12 01:19:53 +02:00
integration fix(tests): mock FormData uploads at API boundary to fix CI timeouts 2026-04-11 02:29:11 +02:00
unit fix(tests): mock FormData uploads at API boundary to fix CI timeouts 2026-04-11 02:29:11 +02:00
setup.ts fix(tests): use node:buffer.Blob so URL.createObjectURL works on Node 22 2026-04-07 23:54:01 +02:00