Nock

на сайте с December 18, 2022 18:42
HTTP server mocking and expectations library for Node.js. HTTP server mocking and expectations library for Node.js Nock can be used to test modules that perform HTTP requests in isolation. For instance, if a module performs HTTP requests to a CouchDB server or makes HTTP requests to the Amazon API, you can test that module in isolation.