{"id":16666687,"url":"https://github.com/nerdo/jest-extended","last_synced_at":"2025-08-02T21:35:59.532Z","repository":{"id":57129870,"uuid":"279148271","full_name":"nerdo/jest-extended","owner":"nerdo","description":"nerdo's custom jest matchers","archived":false,"fork":false,"pushed_at":"2020-07-12T21:31:05.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T20:47:52.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerdo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-12T21:08:12.000Z","updated_at":"2020-07-12T21:23:20.000Z","dependencies_parsed_at":"2022-08-31T19:11:00.499Z","dependency_job_id":null,"html_url":"https://github.com/nerdo/jest-extended","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nerdo/jest-extended","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdo%2Fjest-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdo%2Fjest-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdo%2Fjest-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdo%2Fjest-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdo","download_url":"https://codeload.github.com/nerdo/jest-extended/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdo%2Fjest-extended/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266694576,"owners_count":23969795,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-12T11:11:47.847Z","updated_at":"2025-07-23T14:35:18.173Z","avatar_url":"https://github.com/nerdo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nerdo/jest-extended\n\u003e nerdo's custom jest matchers\n\n## Install it\n\n```bash\nnpm install --save-dev @nerdo/jest-extended\n```\n\n## Set it up\n\n```\n// jest.config.js\nmodule.exports = {\n  setupFilesAfterEnv: [\n    '@nerdo/jest-extended'\n  ]\n}\n```\n\nIf you are using TypeScript and your editor does not recognize the new matchers, create a `global.d.ts` file in your project.\n\n```\n// global.d.ts\nimport '@nerdo/jest-extended'\n```\n\nIf it _still_ is not working, you may also need to create a `tsconfig.json` with an empty object `{}` defined as the contents.\n\n## Asymmetric Matchers\n\n### expect.arrayExclusivelyContaining(array)\nexpect.arrayExclusivelyContaining(array) matches a received array which contains all of the elements in the expected array AND contains the same number of elements.\n\nIt usage is exactly the same as [jest's built-in expect.arrayContaining(array)](https://jestjs.io/docs/en/expect#expectarraycontainingarray).\n\n### expect.objectExclusivelyContaining(object)\nexpect.objectExclusivelyContaining(object) matches a received object which contains all of the keys and values in the expected object AND contains the same number of properties.\n\nIt usage is exactly the same as [jest's built-in expect.objectContaining(object)](https://jestjs.io/docs/en/expect#expectobjectcontainingobject)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdo%2Fjest-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdo%2Fjest-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdo%2Fjest-extended/lists"}