Skip to content

Commit

Permalink
Install axe for accessibility testing.
Browse files Browse the repository at this point in the history
Also added babel-polyfill to setup, which is no longer
automatically included with jest.

See jestjs/jest#3126 (comment)
  • Loading branch information
shalin1 committed Jul 25, 2020
1 parent d4c7638 commit d682a70
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 1 deletion.
95 changes: 95 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"babel-polyfill": "^6.26.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"jest": "^26.1.0"
"jest": "^26.1.0",
"jest-axe": "^3.5.0"
}
}
1 change: 1 addition & 0 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import 'babel-polyfill';

configure({ adapter: new Adapter() });

0 comments on commit d682a70

Please sign in to comment.