Re:Polly.js – Record, replay, and stub HTTP interactions
by curun1r on Wednesday June 13, 2018 @11:34PM
(#17309075)
Not sure that tells me how it's different from replay or the other half dozen npm modules that do the same thing. It'd be nice for them to contrast their tool with existing ecosystem options considering some of them are pretty well established.
Re:Polly.js – Record, replay, and stub HTTP interactions
by jasonmit on Thursday June 14, 2018 @12:37AM
(#17309315)
Can you share which libraries you know that achieve the same thing? I'm happy to go through and respond to the differences.
Re:Polly.js – Record, replay, and stub HTTP interactions
by curun1r on Thursday June 14, 2018 @12:58AM
(#17309405)
I only have experience with replay, but an npm search turns up:
replay, replayer, http-record, talkback, sepia, mitm-record, fetch-vcr, tape-nock, jest-playback, eight-track, axios-vcr, replayer, node-vcr, mocha-vcr, mockyeah, yakbak, nine-track, dkastner-replay, node-nock
At which point I stopped looking...recording http requests isn't exactly new territory.
Re:Polly.js – Record, replay, and stub HTTP interactions
by simplify on Thursday June 14, 2018 @01:20PM
(#17313336)
I've personally used node-replay with great success. It has minimal configuration https://github.com/assaf/node-replay
Why Polly?
Keeping fixtures and factories in parity with your APIs can be a time consuming process. Polly alleviates this by recording and maintaining actual server responses without foregoing flexibility.
* Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. * Use Polly's client-side server to modify or intercept requests and responses to simulate different application states (e.g. loading, error, etc.).