How to test Sveltekit api routes The endpoint being tested The test Setup vitest for API tests please refer to the commit setup vitest for api tests How to run the test(s) pnpm run test:api