{"id":21809902,"url":"https://github.com/japa/assert","last_synced_at":"2025-04-13T21:52:05.609Z","repository":{"id":57120276,"uuid":"446296558","full_name":"japa/assert","owner":"japa","description":"Assertions package for Japa. Built on top of Chai.Assert","archived":false,"fork":false,"pushed_at":"2025-01-07T11:17:24.000Z","size":417,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"4.x","last_synced_at":"2025-03-25T09:50:22.530Z","etag":null,"topics":["assert","plugin"],"latest_commit_sha":null,"homepage":"https://japa.dev/docs/plugins/assert","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},"funding":{"github":"thetutlage"}},"created_at":"2022-01-10T05:50:28.000Z","updated_at":"2025-01-07T11:17:28.000Z","dependencies_parsed_at":"2022-08-23T20:01:09.195Z","dependency_job_id":"857b4e5e-10f4-436a-bbba-332571c4bd35","html_url":"https://github.com/japa/assert","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.048387096774193505","last_synced_commit":"de42a623dbf0cab3297ebdc7ad93bf934077db2b"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japa","download_url":"https://codeload.github.com/japa/assert/tar.gz/refs/heads/4.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788865,"owners_count":21161726,"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":["assert","plugin"],"created_at":"2024-11-27T13:29:11.111Z","updated_at":"2025-04-13T21:52:05.604Z","avatar_url":"https://github.com/japa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/thetutlage"],"categories":[],"sub_categories":[],"readme":"# @japa/assert\n\u003e Assertion library built on top of Chai.assert\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 [Chai.assert](https://www.chaijs.com/guide/styles/#assert) with small tweaks and additional features like assertion planning.\n\n#### [Complete API documentation](https://japa.dev/docs/plugins/assert)\n\n## Installation\nInstall the package from the npm registry as follows:\n\n```sh\nnpm i @japa/assert\n\nyarn add @japa/assert\n```\n\n## Usage\nYou can use the assertion package with the `@japa/runner` as follows.\n\n```ts\nimport { assert } from '@japa/assert'\nimport { configure } from '@japa/runner'\n\nconfigure({\n  plugins: [assert()]\n})\n```\n\nOnce done, you will be able to access the `assert` property on the test context.\n\n```ts\ntest('test title', ({ assert }) =\u003e {\n  assert.deepEqual({ id: 1 }, { id: 1})\n})\n```\n\n[github-actions-url]: https://github.com/japa/assert/actions/workflows/checks.yml\n[github-actions-image]: https://img.shields.io/github/actions/workflow/status/japa/assert/checks.yml?style=for-the-badge \"github-actions\"\n\n[npm-image]: https://img.shields.io/npm/v/@japa/assert.svg?style=for-the-badge\u0026logo=npm\n[npm-url]: https://npmjs.org/package/@japa/assert \"npm\"\n\n[license-image]: https://img.shields.io/npm/l/@japa/assert?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%2Fassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjapa%2Fassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapa%2Fassert/lists"}