Tags: nock/nock
Tags
fix: repair content-length headers for reconstituted JSON payloads (#… …2925) When recording JSON responses with nockback, we don't preserve the formatting, but we do keep the content-length. This means the content-length header may not match the reconstituted JSON payload. With this change, we recalculate the content-length and update the response header to match. --------- Co-authored-by: Michael Solomon <[email protected]>
feat: add no match reasons (#2903) Experimental: The structure and format of the detailed mismatch information may change in future versions as we gather user feedback and refine the API. The feature itself is stable and ready for use and we're seeking community input on the API design before marking it stable.
fix: Use Error objects instead of plain objects with replyWithError() (… …#2900) * docs: replyWithError(): Use Error objects instead of plain objects when mimicking Node.js errors * types, test: Use Error objects instead of plain objects with replyWithError() * Fix style * Enable test for .replyWithError with an Error object, rephrase test descriptions --------- Co-authored-by: Michael Solomon <[email protected]>
PreviousNext