{"library":"mock-req-res","type":"library","category":null,"description":"Library for creating mock Express request and response objects for unit testing controllers and middleware. Version 1.2.1 works with Sinon >10.0.0 and Node >=8.10.0. Provides mockRequest and mockResponse functions that return sinon stubs/spies for all standard Express req/res properties. Supports extensibility via options parameter. Lightweight and focused on isolated unit tests, unlike full integration tools like supertest. Includes TypeScript definitions via @types/mock-req-res. Release cadence is slow, with minor updates as needed.","language":"javascript","status":"active","version":"1.2.1","tags":["javascript","express","mocks","testing","request","response"],"install":[{"cmd":"npm install mock-req-res","imports":["import { mockRequest } from 'mock-req-res'","import { mockResponse } from 'mock-req-res'","import { mockRequest, mockResponse } from 'mock-req-res'"]},{"cmd":"yarn add mock-req-res","imports":[]},{"cmd":"pnpm add mock-req-res","imports":[]}],"homepage":null,"github":"https://github.com/davesag/mock-req-res","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mock-req-res","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-req-res/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}