We need to test got in browser environment to prevent regressions.
For example saucelabs (like superagent does) or browserling, etc.
Nice guide - http://samsaccone.com/posts/testing-with-travis-and-sauce-labs.html
@kevva could you provide example of how you getting got into browser? Browserify?
Yup, using got in the browser is no biggie to setup. I think the worst part is getting the tests to run.
@floatdrop say one was able to get an automated browser test environment up and running. Browser launches, got is available to it. How would you run all the tests? AVA doesn't run in the browser last I checked 😞.
Closing. People have fetch-based libs now that are better suited for the browser. Got's focus is Node.js.
I like fetch(), but I haven't seen any higher-level libraries that I like.
If someone wants to collaborate on a got-like library for the browser, I'd be interested. In particular, I want:
fetch())And maybe custom instances (.create(), .extend())
Could someone point me to these fetch-based libs that are as beautiful and simple to use as got()? I don't want to have to be dealing with ReaderStream Uint16 Arrayss when getting a simple response body text.