chore: test server directly - #16879
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/4bea7740859d2cf9d0e77ae5e51bc4e88f4bc24dOpen in |
|
|
Yeah. This is good. I'll go through this properly tomorrow. |
|
The unit CI rows run vitest alone, so the globalSetup build is the only thing that creates Stripping in |
|
Went through the rest of the suite for the same class. The only other candidate is |
2c0208d to
cc5e1b8
Compare
|
Folded into #16872 and rebased. |
Companion to #16872. I wanted to see if we can make direct calls to
server.respondwith no HTTP intermediary. For the most part it looks like we can, and in fact by doing so I learned that we respond toHEADrequests incorrectly by including a body (probably immaterial, since the body is likely discarded by any layer between the user and the server, includingfetchitself, but still interesting to note).Note that it requires us to explicitly pass
accept: '*/*'(whichfetchimplies) and handle redirects ourselves.