{"id":21809909,"url":"https://github.com/japa/expect","last_synced_at":"2025-06-13T05:03:07.816Z","repository":{"id":43318803,"uuid":"453006844","full_name":"japa/expect","owner":"japa","description":"Assertion package built on top of Jest expect","archived":false,"fork":false,"pushed_at":"2025-05-15T08:56:35.000Z","size":334,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"3.x","last_synced_at":"2025-05-15T08:57:18.646Z","etag":null,"topics":["expect","plugin"],"latest_commit_sha":null,"homepage":"https://japa.dev/docs/plugins/expect","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/japa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"thetutlage"}},"created_at":"2022-01-28T09:20:49.000Z","updated_at":"2025-05-15T08:56:39.000Z","dependencies_parsed_at":"2022-09-19T00:00:41.208Z","dependency_job_id":"980d7265-19b2-4dac-93f1-12aa18bc679a","html_url":"https://github.com/japa/expect","commit_stats":{"total_commits":28,"total_committers":4,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"96fa9fc692deebf468ffd2d224af95a83cd43cd4"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/japa/expect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fexpect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fexpect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fexpect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fexpect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japa","download_url":"https://codeload.github.com/japa/expect/tar.gz/refs/heads/3.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fexpect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259584707,"owners_count":22880187,"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":["expect","plugin"],"created_at":"2024-11-27T13:29:12.666Z","updated_at":"2025-06-13T05:03:07.035Z","avatar_url":"https://github.com/japa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/thetutlage"],"categories":[],"sub_categories":[],"readme":"# @japa/expect\n\u003e Assertion library built on top of jest-expect\n\n[![github-actions-image]][github-actions-url] [![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]\n\nAn assertion library built on top of [jest-expect](https://jestjs.io/docs/expect).\n\n#### [Complete API documentation](https://japa.dev/docs/plugins/expect)\n\n## Installation\nInstall the package from the npm registry as follows:\n\n```sh\nnpm i @japa/expect\n```\n\n```sh\nyarn add @japa/expect\n```\n\n## Usage\nYou can use the assertion package with the `@japa/runner` as follows.\n\n```ts\nimport { expect } from '@japa/expect'\nimport { configure } from '@japa/runner'\n\nconfigure({\n  plugins: [expect()]\n})\n```\n\nOnce done, you will be able to access the `expect` property on the test context.\n\n```ts\ntest('test title', ({ expect }) =\u003e {\n  expect(100).toBeWithinRange(90, 110)\n})\n```\n\n[github-actions-url]: https://github.com/japa/expect/actions/workflows/checks.yml \"github-actions\"\n\n[github-actions-image]: https://img.shields.io/github/actions/workflow/status/japa/expect/checks.yml?style=for-the-badge\n\n[npm-image]: https://img.shields.io/npm/v/@japa/expect.svg?style=for-the-badge\u0026logo=npm\n[npm-url]: https://npmjs.org/package/@japa/expect \"npm\"\n\n[license-image]: https://img.shields.io/npm/l/@japa/expect?color=blueviolet\u0026style=for-the-badge\n[license-url]: LICENSE.md \"license\"\n\n[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge\u0026logo=typescript\n[typescript-url]:  \"typescript\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapa%2Fexpect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjapa%2Fexpect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapa%2Fexpect/lists"}