{"id":21228250,"url":"https://github.com/hexlet/jest-supertest-matchers","last_synced_at":"2025-07-18T16:36:36.958Z","repository":{"id":13269843,"uuid":"74058845","full_name":"Hexlet/jest-supertest-matchers","owner":"Hexlet","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-30T19:52:06.000Z","size":391,"stargazers_count":4,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T09:42:28.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hexlet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T19:12:38.000Z","updated_at":"2023-01-29T14:40:36.000Z","dependencies_parsed_at":"2023-02-13T03:45:38.110Z","dependency_job_id":null,"html_url":"https://github.com/Hexlet/jest-supertest-matchers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hexlet/jest-supertest-matchers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fjest-supertest-matchers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fjest-supertest-matchers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fjest-supertest-matchers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fjest-supertest-matchers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hexlet","download_url":"https://codeload.github.com/Hexlet/jest-supertest-matchers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fjest-supertest-matchers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265793684,"owners_count":23829180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T23:15:19.156Z","updated_at":"2025-07-18T16:36:36.909Z","avatar_url":"https://github.com/Hexlet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"##\n[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github\u0026utm_medium=link\u0026utm_campaign=nodejs-package)\n\nThis repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github\u0026utm_medium=link\u0026utm_campaign=nodejs-package).\n##\n\nSee most active contributors on [hexlet-friends](https://friends.hexlet.io/).\n\n# jest-supertest-matchers\n\n[![Github Actions](../../workflows/CI/badge.svg)](../../actions?query=workflow%3A\"CI\")\n\nJest plugin for testing HTTP status code.\n\n## Setup\n\n```sh\nnpm i jest-supertest-matchers\n```\n\n```javascript\nimport app from '../app';\nimport matchers from 'jest-supertest-matchers';\nimport request from 'supertest';\n\n// inside tests\nbeforeAll(() =\u003e {\n  expect.extend(matchers);\n});\n\nit('example', async () =\u003e {\n  const res = await request(app).get('/');\n  expect(res).toHaveHTTPStatus(200);\n});\n```\n\n## Run tests\n\n```sh\n$ make test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet%2Fjest-supertest-matchers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexlet%2Fjest-supertest-matchers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet%2Fjest-supertest-matchers/lists"}