Skip to content

Commit

Permalink
add enzyme
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranps committed Feb 22, 2019
1 parent 539ea6c commit eb07997
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 14 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
"private": true,
"dependencies": {
"@types/d3": "^5.7.1",
"@types/enzyme": "^3.1.18",
"@types/enzyme-adapter-react-16": "^1.0.4",
"@types/jest": "24.0.6",
"@types/node": "11.9.4",
"@types/react": "16.8.4",
"@types/react-dom": "16.8.2",
"@types/styled-components": "^4.1.10",
"d3": "^5.9.1",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.9.1",
"gh-pages": "^2.0.1",
"husky": "^1.3.1",
"prettier": "^1.16.4",
Expand Down
4 changes: 4 additions & 0 deletions src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";

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

0 comments on commit eb07997

Please sign in to comment.