News for hackers. Stuff that matters.
Re:Polly.js – Record, replay, and stub HTTP interactions by cottsak on Wednesday June 13, 2018 @10:53PM (#17308890)
I still don't get why we do this [mocking http endpoints].

Sure this makes the problem of mocking the server less painful. Well done. But I'd take completely integrated tests over these any day. Sure they're slower but that's more or less irrelevant with feature toggling, staged roll-out and continuous production monitoring.

It's totally possible to completely avoid mocking http endpoints thus making these tools completely obsolete.

Re:Polly.js – Record, replay, and stub HTTP interactions by jasonmit on Thursday June 14, 2018 @12:40AM (#17309337)
See my comment above. This is not a replacement for E2E testing.
Re:Polly.js – Record, replay, and stub HTTP interactions by tootie on Wednesday June 13, 2018 @11:05PM (#17308941)
It's not always easy. Especially not if your API is stateful.
Re:Polly.js – Record, replay, and stub HTTP interactions by strken on Thursday June 14, 2018 @12:12AM (#17309227)
Or if it's not your API. I've been looking for something like this to make mocking OAuth flow a lot easier.