You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add a suite of integration tests in the new http adaptor.
This creates a server and uses the http functions to call it.
As well as some very basic get/put/post stuff, it can test redirects, form data, auth and tls security - stuff that's harder to unit test with the undici mocks
We should add a suite of integration tests in the new http adaptor.
This creates a server and uses the http functions to call it.
As well as some very basic get/put/post stuff, it can test redirects, form data, auth and tls security - stuff that's harder to unit test with the undici mocks
--
Here's a unit test for http which uses redirects:
This test doesn't work against the undici mock interceptor because the redirect flag is not respected.
To get this test to pass, we should:
It's kind of a big test and not worth the time right now.
Here's a koa server we can use:
The text was updated successfully, but these errors were encountered: