Trek_CN/client/tests
jubnl e3a5bc0f77
fix(tests): mock FormData uploads at API boundary to fix CI timeouts
jsdom's FormData is incompatible with undici's ReadableStream serialisation
used by MSW 2.x — requests hang under CI resource constraints but pass locally.
Replace server.use() + implicit HTTP roundtrip with vi.spyOn().mockResolvedValueOnce()
for all five FormData POST tests (uploadAvatar, uploadRestore, addFile, importGpx).
2026-04-11 02:29:11 +02:00
..
helpers test(client): expand frontend test suite to 69.1% coverage 2026-04-07 21:56:08 +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