Skip to content

Integrate Basic Automated Accessibility Audits #10

@manish3299

Description

@manish3299

## Integrate a Basic Automated Accessibility Audit with Axe-core

Description:
Set up a simple automated accessibility audit using axe-core. This will serve as the first step toward real-time auditing in our CI pipeline.

Tasks:

  • Install jest-axe and its peer dependencies.
  • Write a test for a simple component (or a dummy component if needed) that uses jest-axe to verify accessibility.
  • Add the test file (e.g., src/__tests__/accessibility.test.js) and verify that no axe violations are present.

Steps to Get Started:

  1. Fork the repository and create a branch called feature/axe-a11y-audits.

  2. Install dependencies:

    npm install --save-dev jest-axe axe-core
    
  3. Create a test file that imports a component and runs the axe check.

  4. Run the tests using npm run test and ensure everything is passing.

  5. Open a pull request with your test code and a short description of your work.

This issue is a great starting point for understanding how automated a11y tests work. Happy coding!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions