Google AI ModeJun 22, 2026
- **For Node.js Testing:** Nock is often used to intercept HTTP requests.
Nock is an HTTP server mocking and expectations library for Node.js that allows developers to test modules performing HTTP requests in isolation. It intercepts HTTP requests and returns predefined responses, enabling reliable testing without actual network calls.
AI named Nock from June 2026 to July 2026.
None of these answers cited npmjs.com. AI leaned on youtube.com, alexhyett.com, and apidog.com.
npmjs.com/package/nock 0%Other sites 100%
Excerpts where Nock appeared in the AI's answer
- **For Node.js Testing:** Nock is often used to intercept HTTP requests.