Trek_CN/client/tests/unit
jubnl e991f834e2
fix(tests): replace URL.createObjectURL mocking with vi.stubGlobal
Direct property assignment and Object.defineProperty both fail
silently on CI when jsdom marks URL.createObjectURL as non-writable
and non-configurable. vi.stubGlobal('URL', ...) replaces globalThis.URL
entirely — which always succeeds — while extending the real URL class
so all URL parsing behaviour is preserved. vi.unstubAllGlobals() is
called at the start of beforeEach to reset cleanly between tests.
2026-04-07 23:18:43 +02:00
..
api fix(tests): replace URL.createObjectURL mocking with vi.stubGlobal 2026-04-07 23:18:43 +02:00
hooks test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
i18n test(client): expand frontend test suite to 69.1% coverage 2026-04-07 21:56:08 +02:00
remoteEventHandler test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
slices test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
stores test(client): expand frontend test suite to 69.1% coverage 2026-04-07 21:56:08 +02:00
utils test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
tripStore.test.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00