Effect CommunityEC
Effect Community15mo ago
7 replies
jessekelly

Testing HttpApi Endpoints Without Launching a Server

What's the best way to test HttpApi endpoints without launching a server? I want to have tests that test the route directly e.g. "/users/:id" or client.users.findById I would love a TestClient identical to HttpClient that instead of making requests over http just calls the handlers directly. Maybe it already exists and I'm missing it.
Was this page helpful?