added testing

This commit is contained in:
2026-05-16 23:48:57 +02:00
parent 23c62fb1e6
commit f1d5c4a4fd
16 changed files with 1014 additions and 119 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export const ALL: APIRoute = async ({ request, params }) => {
if (request.method !== 'GET' && request.method !== 'HEAD' && request.body) {
fetchOptions.body = request.body;
// @ts-ignore — required by Node fetch when body is a stream
// @ts-expect-error — required by Node fetch when body is a stream
fetchOptions.duplex = 'half';
}
@@ -52,7 +52,7 @@ export const ALL: APIRoute = async ({ request, params }) => {
if (FORBIDDEN_RESPONSE_HEADERS.has(k)) return;
responseHeaders.set(key, value);
});
// @ts-ignore — getSetCookie is on Node fetch's Headers
// @ts-expect-error — getSetCookie is on Node fetch's Headers
const setCookies: string[] = response.headers.getSetCookie?.() ?? [];
for (const c of setCookies) {
responseHeaders.append('set-cookie', c);