# @rakoon-badshah/my-newaxe

> Jest Axe Api

Latest version **1.4.7** (published 2020-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rakoon-badshah/my-newaxe
pnpm add @rakoon-badshah/my-newaxe
yarn add @rakoon-badshah/my-newaxe
bun add @rakoon-badshah/my-newaxe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.7 |
| Published | 2020-03-25 |
| First published | 2020-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rakoon-badshah |
| Keywords | jest, axe |

## Links

- npm: https://www.npmjs.com/package/@rakoon-badshah/my-newaxe
- npm.io page: https://npm.io/package/@rakoon-badshah/my-newaxe

## Dependencies (2)

- [jest-axe](https://npm.io/package/jest-axe.md) ^3.4.0
- [@types/jest-axe](https://npm.io/package/@types/jest-axe.md) ^3.2.1

## Recent versions

- 1.4.7 (latest) — 2020-03-25
- 1.4.6 — 2020-03-25
- 1.4.5 — 2020-03-25
- 1.4.4 — 2020-03-25
- 1.4.3 — 2020-03-25

## README

## 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 }
  }
}
```

---
_Source: https://npm.io/package/@rakoon-badshah/my-newaxe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
