Picking a testable ajax library for react (using jest)
Here are some examples of doing a GET
request against a resource and getting JSON back.
Works. Works great. It just brings along a lot of baggage you won't need in a ReactJS app. Removing jQuery will remove over 200KB (unminified/gzipped).
The only fetch implementation that's testable is isomorphic-fetch. It's designed after the official WHATWG spec.
A new package that's inspired by request (sp). It's simple but still very new. It has shortcuts for constructing querystrings and request bodies, but you have to get json out of the response yourself. You also have to handle errors yourself.
superagent-- Not testablereact-ajax-- Not active/production worthy?browser-requestTODO