Sign In

@webability/jest

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webability/jest

Component-level accessibility testing for Jest and Vitest

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
11
Maintainers
1
Weekly downloads
 
Created
Source

@webability/jest

Component-level accessibility testing for Jest and Vitest.

Install

npm install -D @webability/jest

Usage

import { analyzeDOM, matchers } from '@webability/jest'

expect.extend(matchers)

test('button is accessible', () => {
  render(<Button onClick={save}>Save</Button>)
  const result = analyzeDOM()
  expect(result).toBeAccessible()
})

test('no critical violations', () => {
  render(<LoginForm />)
  const result = analyzeDOM()
  expect(result).toHaveNoViolations('critical')
})

License

MIT

Keywords

accessibility

FAQs

Package last updated on 25 Apr 2026

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