poetic / nock-vcr-recorder

A test framework agnostic vcr implementation that uses nock.
9 stars 11 forks source link

Removing mocks #8

Closed divergentdave closed 8 years ago

divergentdave commented 8 years ago

I would like to combine tests using cassettes with tests using real HTTP requests in the same test suite. It appears that there isn't a good way to do this presently, because nock responses are only ever removed or cleared when adding new nock responses. If the nockReset() function were exposed as a public API, that would suffice.

leonidez commented 8 years ago

Fixed with #9

divergentdave commented 8 years ago

Great, thank you!