darto_test 1.1.0
darto_test: ^1.1.0 copied to clipboard
Ergonomic test client for the Darto web framework — boot an app on an ephemeral port and assert responses without managing a server.
1.1.0 #
request(...)/get(...)acceptfollowRedirects: falseto capture a raw 3xx response (its status, headers andSet-Cookie) instead of being silently followed. Useful for testing OAuth, post-login redirects, etc.
1.0.0 #
- Initial release.
TestClient.create(app)boots a Darto app on an ephemeral loopback port.get/head/options/post/put/patch/delete/requesthelpers withjson/body/headerssupport.TestResponsewithstatusCode,body,json,header(),headers,cookie()/cookies, andisOk.