Skip to content

Commit

Permalink
feat: Update Jest+React example
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Feb 26, 2018
1 parent 72d49d5 commit 5b35322
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
20 changes: 10 additions & 10 deletions doc/examples/jest+react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
"dependencies": {
},
"dependencies": {},
"scripts": {
"test": "jest"
},
"devDependencies": {
"axe-core": "^2.2.3",
"babel-jest": "^20.0.3",
"axe-core": "^2.6.1",
"babel-jest": "^22.4.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"enzyme": "^2.8.2",
"jest": "^20.0.4",
"jest-cli": "^20.0.4",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4"
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"jest": "^22.4.0",
"jest-cli": "^22.4.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-test-renderer": "^16.2.0"
}
}
5 changes: 4 additions & 1 deletion doc/examples/jest+react/test-helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { mount } from 'enzyme';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

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

let wrapper
export function mountToDoc (reactElm) {
Expand Down

0 comments on commit 5b35322

Please sign in to comment.