darto_test 1.1.0 copy "darto_test: ^1.1.0" to clipboard
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(...) accept followRedirects: false to capture a raw 3xx response (its status, headers and Set-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 / request helpers with json / body / headers support.
  • TestResponse with statusCode, body, json, header(), headers, cookie() / cookies, and isOk.
1
likes
150
points
26
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Ergonomic test client for the Darto web framework — boot an app on an ephemeral port and assert responses without managing a server.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

darto

More

Packages that depend on darto_test