tgvashworth / fetch-engine

A smart request-making library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build scaffolding for testing real requests

tgvashworth opened this issue · comments

We have cross-browser testing and a working core. Now we need to make some real requests.

We'll spin up a local server that responds according to some configuration and then make requests from tests. First let's get one test working in node and the browsers.

I'm looking at using impostor to do this. Each test would __set__ its endpoints, make the requests and then __clean__.

Did a quick code review of impostor and I'm not super confident.

Given the range of things we're likely to want to do, hapi might be a better choice.