Nock is a HTTP server mocking package, allowing us to test modules that make HTTP requests. SuperTest is a high level abstraction of HTTP requests, making it perfect for testing APIs. This will allow us to test components in isolation. How to intercept API calls within your front-end JavaScript Framework, using React as an example. Perform GET and POST requests using SuperTest Hi, and welcome to API Testing, SuperTest and Nock.
0 Comments
Leave a Reply. |