Follow

Continuum for Jest/JSDOM

About Continuum for Jest/JSDOM

Continuum for Jest/JSDOM 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://facebook.github.io/jest/). By integrating with your automated test framework, Continuum for Jest/JSDOM 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. Learn more about Continuum Explorer.

Continuum for Jest/JSDOM 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 via jsdom

Getting Started with Continuum for Jest/JSDOM 

Prerequisite

Access Continuum for Jest/JSDOM requires Node.js( https://nodejs.org/en/).

Installation and Configuration

  1. Download Continuum for Jest from AMP Toolbox

  2. In the console, cd\ to the directory containing the Continuum for Jest/JSDOM download and enter 'npm install' to install.
  3. 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/JSDOM 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. 

 

 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Level Access Support
www.levelaccess.com | 800.889.9659
© 2005 - 2018 - Level Access All rights reserved.
Privacy | Security | Credits | License