Skip to content

Commit

Permalink
Add jest-axe
Browse files Browse the repository at this point in the history
Includes jest-axe, which allows us to run axe-core directly within our unit tests.
  • Loading branch information
NickColley committed Feb 14, 2018
1 parent 930a940 commit e667d03
Show file tree
Hide file tree
Showing 25 changed files with 468 additions and 121 deletions.
5 changes: 5 additions & 0 deletions config/jest-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env jest */

const { toHaveNoViolations } = require('jest-axe')

expect.extend(toHaveNoViolations)
1 change: 1 addition & 0 deletions lib/jest-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fs = require('fs')
const nunjucks = require('nunjucks')
const cheerio = require('cheerio')
const yaml = require('js-yaml')

const configPaths = require('../config/paths.json')

nunjucks.configure(configPaths.components, {
Expand Down
Loading

0 comments on commit e667d03

Please sign in to comment.