{"id":22976462,"url":"https://github.com/interviewstreet/enzyme-chai-a11y","last_synced_at":"2025-04-02T08:20:51.272Z","repository":{"id":44175318,"uuid":"228784229","full_name":"interviewstreet/enzyme-chai-a11y","owner":"interviewstreet","description":"Accessibility testing plugin for chai based on axe-core","archived":false,"fork":false,"pushed_at":"2022-12-10T12:30:01.000Z","size":3153,"stargazers_count":0,"open_issues_count":18,"forks_count":1,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-03-08T05:48:11.131Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interviewstreet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-18T07:35:19.000Z","updated_at":"2021-07-29T14:49:37.000Z","dependencies_parsed_at":"2023-01-26T01:40:28.393Z","dependency_job_id":null,"html_url":"https://github.com/interviewstreet/enzyme-chai-a11y","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fenzyme-chai-a11y","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fenzyme-chai-a11y/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fenzyme-chai-a11y/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fenzyme-chai-a11y/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interviewstreet","download_url":"https://codeload.github.com/interviewstreet/enzyme-chai-a11y/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777791,"owners_count":20832033,"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-12-15T00:51:17.463Z","updated_at":"2025-04-02T08:20:51.244Z","avatar_url":"https://github.com/interviewstreet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enzyme-chai-a11y\n\n[![Generated with nod](https://img.shields.io/badge/generator-nod-2196F3.svg?style=flat-square)](https://github.com/diegohaz/nod)\n[![NPM version](https://img.shields.io/npm/v/enzyme-chai-a11y.svg?style=flat-square)](https://npmjs.org/package/enzyme-chai-a11y)\n[![Build Status](https://img.shields.io/travis//master.svg?style=flat-square)](https://travis-ci.org/) [![Coverage Status](https://img.shields.io/codecov/c/github//master.svg?style=flat-square)](https://codecov.io/gh//branch/master)\n\nAccessibility testing plugin for chai based on axe-core\n\n## Install\n\nnpm:\n\n    npm i enzyme-chai-a11y --save-dev\n\nYarn:\n\n    yarn add enzyme-chai-a11y --dev\n\n## Usage\n\n```js\nimport auditA11y, { accessible } from \"enzyme-chai-a11y\";\nchai.use(accessible);\n\nit('should not have accessibility violations', async () =\u003e {\n    const results = await auditA11y(\u003cp\u003etest\u003c/p\u003e);\n    expect(results).to.be.accessible();\n});\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n#### Table of Contents\n\n-   [auditA11y](#audita11y)\n    -   [Parameters](#parameters)\n\n### auditA11y\n\nRuns the axe-core on passed component.\n\n#### Parameters\n\n-   `app` **[node](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)** node to test\n-   `config` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** axe-core config (optional, default `{}`)\n-   `enzymeConfig` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** enzyme config (optional, default `{}`)\n\n## License\n\nMIT © [Vikas Parashar](https://github.com/vikas-parashar)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fenzyme-chai-a11y","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterviewstreet%2Fenzyme-chai-a11y","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fenzyme-chai-a11y/lists"}