This example demonstrates how to write unit tests with aXe-core
- Download and install Node.js. Instructions here: https://nodejs.org/
- Clone project from Github:
git clone https://github.com/anneceh/axe-unit-tests/
- cd into the project catalog:
cd axe-unit-tests
- Install dependencies with
npm install
- Run tests with
npm test
- You get code ENOENT when you run
npm install
- Problem: you are in the wrong directory
- Solution: cd into the project catalog:
cd axe-unit-tests