Live data from Hacker News

Nock – HTTP mocking and expectations library

github.com

1–10 of 12 posts

Re: Nock – HTTP mocking and expectations library

#2
I've used this library a bunch with decent success. Most recently on an API client for my current product: https://github.com/yeller/yeller_node (see https://github.com/yeller/yeller_node/blob/master/spec/integ... for the tests in question). Very happy with it so far!

Re: Nock – HTTP mocking and expectations library

#6
post #3

I'd like to lodge a modest complaint about the name. http://doc.urbit.org/doc/nock/tut/1/

This library is a couple years old. I know Urbit is older but is Urbit's nock also as old?

edit: yes, at least 5 years old, but bloody esoteric http://moronlab.blogspot.com/2010/01/nock-maxwells-equations...

Re: Nock – HTTP mocking and expectations library

#7
I used this for a few projects a while back and loved it, and looking through the README in Master it seems like a lot has been improved:

- Delayed responses. - Delayed connections. - Custom HTTP verbs for ones that don't have convenience methods. - Nock Back

I believe recording had just been introduced when I was using the library, but Nock Back is seems like the last piece that brings it on par with the VCR lib I was used to using with Ruby / RSpec projects.

It's always nice to scroll through a project you've had a good experience with and see the README has been considerably fleshed out (in a good way).

Post reply on HN