News for hackers. Stuff that matters.
Re:Polly.js – Record, replay, and stub HTTP interactions by pimterry on Thursday June 14, 2018 @05:13AM (#17310407)
If you're looking for Nock but not just node, try Mockttp: https://github.com/pimterry/mockttp.

It lets you create & configure mock HTTP servers for JS testing, but with one API that works out of the box in Node and in browsers. This avoids the record/replay model too, so you can still take the TDD approach and define your API behaviour in the test itself.

(Disclaimer: I'm the author of Mockttp)

There are no comments on this comment yet.