Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/a11ytester / README.md
Size: Mime:

@doodle/a11ytester

This library provides a small framework to test the accessibility of a frontend project.

Install

echo registry=https://npm-proxy.fury.io/mfsTqYdDz3bsKFQJuMAR/tmf/ >> .npmrc
yarn add --dev --exact @doodle/a11ytester

Contribute

You will need Node 8 to start this application

Install the dependencies

yarn

Publish

npm publish

Test

Run the unit tests

yarn test

Configuration

The module can be configured in the package.json using an object property called a11ytester.

Example:

{
  "reportsPath": "dist/a11y-reports",
  "pa11y": {
    "timeout": 60000,
    "chromeLaunchConfig": {
      "headless": false
    },
  }
}

Valid properties

  • reportsPath: (string) the folder where file reports will be saved
  • verbose: (boolean) prints more information in the terminal
  • pa11y: (object) the configuration passed to pa11y

Valid pa11y properties

https://github.com/pa11y/pa11y#configuration

Puppeteer properties for pa11y (pa11y.chromeLaunchConfig)

https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions

Writing a11y specs

See the docs.