# [Don&#x27;t mock 3rd-party request library in tests](https://github.com/kadamwhite/wordpress-rest-api/issues/72)

> state: **open** opened by: **kadamwhite** on: **8/1/2014**

It was suggested in code review that using [nock](https://github.com/pgte/nock) or an alternative to mock the server responses would be a more robust approach to testing the library, vs the current approach (in which our tests depend on the specific API provided by superagent).

### Comments

