{"library":"reqres","type":"library","category":null,"description":"Stub request and response objects for testing Express applications and middleware. Provides `req()` and `res()` functions that create mock objects with sensible defaults and sinon stubs on methods. Version 3.0.1 is current, maintained as needed. Key differentiator: integrates sinon for stub/spy assertions, customisable sinon instance, emits 'end' events on response methods. Alternative to node-mocks-http or express-mocks-http.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","express","stub","testing"],"install":[{"cmd":"npm install reqres","imports":["const { req } = require('reqres');","const { res } = require('reqres');","const reqres = require('reqres'); reqres.sinon = require('sinon');"]},{"cmd":"yarn add reqres","imports":[]},{"cmd":"pnpm add reqres","imports":[]}],"homepage":null,"github":"https://github.com/lennym/reqres","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/reqres","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/reqres/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}