Skip to content

v5.8.0

Compare
Choose a tag to compare
@andymsuk andymsuk released this 17 Jan 10:56

Adds a new CLI command, meaning this package can now be run anywhere from the command-line, making it easy to integrate with your existing projects. Here's how:

  1. Install the package globally: npm install @bbc/a11y-tests-web --global
  2. Run the command anywhere from your command-line, e.g. A11Y_CONFIG=iplayer-web/all a11y-tests-web lighthouse -m junit-headless

You could also make it part of your application's scripts. Here's how:

  1. Add the package to your application's dev dependencies: npm install @bbc/a11y-tests-web --save-dev
  2. Add a line to your application's scripts e.g. "test:a11y": "A11Y_CONFIG=iplayer-web/app-playback-test a11y-tests-web bbc-a11y -m interactive"

You can find out more about using the CLI option by running a11y-tests-web --help.