On this page:
About Continuum for Jest
Continuum for Jest is an accessibility testing plugin for Jest. It allows developers to conduct automated accessibility testing on React applications within the software development lifecycle (SDLC).
Jest is a testing framework developed and used by Facebook to test all JavaScript code including React applications (https://jestjs.io/). By integrating with your automated test framework, Continuum for Jest allows developers to easily incorporate automatic accessibility testing into their existing continuous testing process.
At Level Access, we believe in dogfooding our own products. As such, this is the accessibility testing tool we used for Continuum Explorer, our Chrome extension that flags accessibility issues found on a web page and provides remediation guidance.
Continuum for Jest includes:
- Access Engine, specifically the automatic tests included with this accessibility testing engine
- A sample Continuum project that tests a barebones React application using Jest and Enzyme
Prerequisite
Access Continuum for Jest requires Node.js( https://nodejs.org/en/).
Installation and configuration
- Download Continuum for Jest from AMP Toolbox
- In the console, cd\ to the directory containing the Continuum for Jest download and enter 'npm install' to install.
- Create a compatible `.babelrc` file in the root project directory:
' echo '{ "presets": ["es2015", "react"] }' > .babelrc'
Running tests
To run tests, cd\ to the directory containing Continuum for Jest and enter ' npm test'
Test results will display the list of accessibility errors, along with details to guide remediation efforts. See "Access Continuum Test Results" for more details.
Support
Submit any questions through the support form, or get support from the community and the Level Access development team by posting questions on Stack Overflow with the following tags: #acccessibility, #webaccessibility and #wai-aria
Comments
0 comments
Article is closed for comments.