test: add fetch mock helper and reaction coverage

This commit is contained in:
Sebastian
2026-02-17 09:01:30 -05:00
parent 0e023e300e
commit cc359d338e
28 changed files with 193 additions and 106 deletions

View File

@@ -0,0 +1,6 @@
export const withFetchPreconnect = <T extends (...args: unknown[]) => unknown>(
fn: T,
): typeof fetch =>
Object.assign(fn, {
preconnect: () => {},
}) as unknown as typeof fetch;