Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enzyme-chai-a11y

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enzyme-chai-a11y

Accessibility testing plugin for chai based on axe-core

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

enzyme-chai-a11y

Generated with nod NPM version Build Status Coverage Status

Accessibility testing plugin for chai based on axe-core

Install

npm:

npm i enzyme-chai-a11y --save-dev

Yarn:

yarn add enzyme-chai-a11y --dev

Usage

import auditA11y, { accessible } from "enzyme-chai-a11y";
chai.use(accessible);

it('should not have accessibility violations', async () => {
    const results = await auditA11y(<p>test</p>);
    expect(results).to.be.accessible();
});

API

Table of Contents

auditA11y

Runs the axe-core on passed component.

Parameters
  • app node node to test
  • config object axe-core config (optional, default {})
  • enzymeConfig object enzyme config (optional, default {})

License

MIT © Vikas Parashar

Keywords

FAQs

Package last updated on 29 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc