1.4.2 • Published 4 years ago

@rakoon-badshah/my-axe v1.4.2

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Jest Axe package

This is a jest axe package

Installation

npm i -D @rakoon-badshah/my-axe

usage

const {
  toHaveNoViolations,
  axe
} = require('./../axe');

expect.extend(toHaveNoViolations);
it('should demonstrate this matcher`s usage with a default config', async () => {
  const render = () => `
    <div>
      <img src="#"/>
    </div>
  `
  // pass anything that outputs html to axe
  const html = render()

  expect(await axe(html)).toHaveNoViolations()
});

config file - axe.config.json

{
  "runOnly": {
    "type": "tags",
    "values": ["wcag2a", "wcag2aa"]
  },
  "rules": {
    "image-alt": { "enabled": false },
    "region":{ "enabled": false }
  }
}
1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.2.0

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago