Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run axe in jest, with failing builds #522

Merged
merged 3 commits into from
Feb 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/__tests__/app.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* globals describe, it, expect, beforeAll, afterAll */
/* eslint-env jest */

const request = require('request')
const cheerio = require('cheerio')
Expand Down
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)
2 changes: 1 addition & 1 deletion docs/development-and-publish-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This task will:
**`gulp test`**

This task will:
- run accessibility test (tenon and axe)
- run accessibility test (tenon)

**`gulp watch`**

Expand Down
1 change: 0 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ gulp.task('test', cb => {
runsequence(
'js:lint',
'scss:lint',
'html:axe',
'html:tenon',
cb)
})
Expand Down
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