1.4.7 • Published 4 years ago

@rakoon-badshah/my-newaxe v1.4.7

Weekly downloads
-
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.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago