{"library":"mock-express-response","type":"library","category":null,"description":"Node.js library designed to facilitate unit and integration testing of Express.js middleware and route handlers by providing a mock HTTP response object. It emulates the standard Express `response` API, including methods like `json()`, `send()`, and `render()`, allowing developers to inspect the output and behavior of their Express-dependent code without launching a full HTTP server. The package, currently at version 0.3.0, appears to be unmaintained; its last update was in 2017 and the copyright dates to 2015. It is built upon `mock-res` for core HTTP response stream mocking and is intended to be used in conjunction with `mock-express-request` for a complete request/response mock pair. A key differentiator is its direct mirroring of the Express `res` object's internal state, allowing retrieval of rendered data via methods like `_getJSON()` and `_getString()`, which simplifies assertion writing in tests. Due to its age, compatibility with modern Express.js versions (v5+) and native ESM environments is not guaranteed.","language":"javascript","status":"abandoned","version":"0.3.0","tags":["javascript","express","connect","mock","stab","unit","test","spec","specification"],"install":[{"cmd":"npm install mock-express-response","imports":["const MockExpressResponse = require('mock-express-response');"]},{"cmd":"yarn add mock-express-response","imports":[]},{"cmd":"pnpm add mock-express-response","imports":[]}],"homepage":null,"github":"https://github.com/lykmapipo/mock-express-response","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mock-express-response","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mock-express-response/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}