# NickColley/jest-axe

Custom Jest matcher for aXe for testing accessibility ♿️🃏

Repository: https://github.com/NickColley/jest-axe
Canonical: https://ross.abutalabs.com/products/jest-axe
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-10T08:20:16+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 63, longevity 100
- inputs: {"age_days": 3124, "days_push": 23, "days_rel": 38, "gap_med": 509, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1111, forks 54 (observed 2026-08-28T04:03:37.737532+00:00)

## What it is
jest-axe is a custom Jest matcher wrapping axe-core that lets you assert rendered HTML has no accessibility violations. It runs automated a11y checks in JSDOM and reports violations in Jest's familiar expect format.

## Use cases
- test that my React components have no accessibility violations
- add automated a11y checks to my Jest test suite
- assert rendered HTML passes axe-core accessibility rules
- catch missing alt text and ARIA issues in unit tests
- run accessibility linting as part of CI tests

## When to choose
- you already use Jest and want automated accessibility assertions
- you want axe-core violations reported as readable Jest failures
- you're testing React, Vue, or plain HTML output in JSDOM

## When to avoid
- you need color contrast checks, which don't work in JSDOM
- you expect automated testing to guarantee full accessibility - manual and assistive-tech testing is still required
- you use a test runner other than Jest without matcher support

## Facets
- artifact type: library
- maturity: active
- function: testing, accessibility, e2e-testing, linter
- domain: testing, accessibility, web-development, frontend, developer-tools
- platform: -
- tags: jest, axe-core, a11y, jest-matcher, automated-accessibility-testing, nodejs, javascript, jsdom

## Member repositories
- NickColley/jest-axe (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:37.737532+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:42:54.660758+00:00, confidence not recorded.
  - readme: https://github.com/NickColley/jest-axe (fetched 2026-08-28T04:03:37.737532+00:00, sha d3ac498eb460)
  - registry_npm: https://registry.npmjs.org/jest-axe (fetched 2026-08-29T12:46:32.305779+00:00, sha 5f2421f290f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
