{"bugs":{"url":"https://github.com/open-wc/open-wc/issues"},"dist":{"shasum":"b1269c3e956ad675afcbf006ce629ee40f3ca5cb","tarball":"https://registry.npmjs.org/chai-a11y-axe/-/chai-a11y-axe-1.3.2-next.2.tgz","fileCount":10,"integrity":"sha512-pgTbA5Fbhbii6aDJh4N/w6Xd2EEI9OyXThRl5zxc/vphBNepijLDFXsMo+f78jwcyyKh6UTYHH8LN6xVZBgnGg==","signatures":[{"sig":"MEQCIEuVOsOgkp1BU7lImUAeX6l6NwLA8/Suu6k8NrfoexX6AiBBJV4fiR1xMgNWXsfL7AvBQS9AmT92T770dokq1O19+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNf66CRA9TVsSAnZWagAAFfAP/1x4ppRm1mqw6cW5qvxW\ndyAq7erRadT1ESFqRuDqTYxrJm1jBYfbrk0P0C5wCfp55cV4gBxgfuYPg5Sw\nB+wYy1smopKCJZEXhdlSLtN2/kAUlkULejnYKLqRSOnjAUIxlVqcipZb/xmU\nmEAUcvpnoWbI5zepxjAngWpSNw7JGruebkGyvmBqocj7ajgVtVKi5CIcfJwd\n/K0pMjNNCH9dH1WhA3w5nctKUj9SzIttpvPZfKTBXLU07DF3wRx9eTPyyBWL\nKDJIE1kRgWUywUHUPK2aJlDv6BXDKyyWN71eed9jVGMGI37D8sLWVk+ahfiV\nCWKtQLBRKV4dxdPdqilhqUzpAP6syh5Mic66IDB7IlORL7kCUKbEz6Ii3Lul\n5UJmjLpLQ+zm4x+CfAbafYehQaxVpwpolNfYZAWakWTukX9mTKzrGTTT2lFf\nBwW6NGReRhCxDO0f7eQXaEZ7HJdmCDvFROBe49DcwuqYtDMJhtFtR5Y38aRg\nlN2NlUMG2alPSykWSHqtoaPX7M39A6/LxPg3kc7vBTYSdt+rSUuH1CBesM7/\nhStdqqGhlwE/2T4+CNtVO/z1zxuBw6xugNJ/yLDUuePWIBV08I+Zd6BmQ0mF\nxKlEaOGP24mOvkHfBjcyLF7dc0VqfBraROMhvDgxXPDFMaZfHNK7c+pB52a4\nYaSE\r\n=ttbN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"chai-a11y-axe","author":{"name":"open-wc"},"readme":"# Testing >> Chai A11y aXe ||30\n\nThis module provides a Chai plugin to perform automated accessibility tests via axe.\n\nThis package is shipped as a dependency with `@open-wc/testing` so you do not need to install this seperately.\n\n[//]: # 'AUTO INSERT HEADER PREPUBLISH'\n\n## Chai BDD UI\n\nThe BDD UI works with chai's `expect` function.\n\nBecause the test is asynchronous, you must either await its result or pass a `done` parameter in the plugin's options object.\n\nRules can be ignored by passing `ignoredRules` with a list of ignored rules as a configuration option.\n\n```js\nimport { fixture, expect, html } from '@open-wc/testing';\n\nit('passes accessibility test', async () => {\n  const el = await fixture(html` <button>label</button> `);\n  await expect(el).to.be.accessible();\n});\n\nit('fails without label', async () => {\n  const el = await fixture(html` <div aria-labelledby=\"test-x\"></div> `);\n  await expect(el).not.to.be.accessible();\n});\n\nit('passes for all rules, ignores attributes test', async () => {\n  const el = await fixture(html` <div aria-labelledby=\"test-x\"></div> `);\n  await expect(el).to.be.accessible({\n    ignoredRules: ['aria-valid-attr-value'],\n  });\n});\n\nit('accepts \"done\" option', done => {\n  fixture(html` <button>some light dom</button> `).then(el => {\n    expect(el).to.be.accessible({\n      done,\n    });\n  });\n});\n```\n\n## Chai TDD UI\n\nThe `isAccessible()` and `isNotAccessible()` methods work on Chai's `assert` function.\n\n```js\nimport { fixture, assert, html } from '@open-wc/testing';\n\nit('passes axe accessible tests', async () => {\n  const el = await fixture(html` <button>some light dom</button> `);\n  await assert.isAccessible(el);\n});\n\nit('accepts ignored rules list', async () => {\n  const el = await fixture(html` <div aria-labelledby=\"test-x\"></div> `);\n  await assert.isAccessible(el, {\n    ignoredRules: ['aria-valid-attr-value'],\n  });\n});\n\nit('passes for negation', async () => {\n  const el = await fixture(html` <div aria-labelledby=\"test-x\"></div> `);\n  await assert.isNotAccessible(el);\n});\n```\n","license":"MIT","scripts":{"prepublishOnly":"publish-docs --github-url https://github.com/open-wc/open-wc/ --git-root-dir ../../"},"_npmUser":{"name":"modern-web","email":"hello@modern-web.dev"},"homepage":"https://github.com/open-wc/open-wc/tree/master/packages/chai-a11y-axe","keywords":["chai","accessibility","A11Y","testing"],"repository":{"url":"git+https://github.com/open-wc/open-wc.git","type":"git","directory":"packages/chai-a11y-axe"},"_npmVersion":"6.14.15","description":"A11y tests for chai","directories":{},"maintainers":[{"name":"d4kmor","email":"d4kmor@gmail.com"},{"name":"modern-web","email":"hello@modern-web.dev"}],"_nodeVersion":"14.17.6","contributors":[{"name":"Pawel Psztyc"}],"dependencies":{"axe-core":"^4.3.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/chai-a11y-axe_1.3.2-next.2_1630928570256_0.5882811060487678","host":"s3://npm-registry-packages"},"_id":"chai-a11y-axe@1.3.2-next.2","version":"1.3.2-next.2"}