Skip to content

Commit

Permalink
Init react testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobMGEvans committed Jun 8, 2021
1 parent da7cbc0 commit 818faff
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 4 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@testing-library/jest-dom": "^5.13.0",
"@testing-library/react": "^11.2.7",
"@types/enzyme": "^3.10.1",
"@types/jest": "^24.0.15",
"@types/prop-types": "^15.7.1",
Expand Down
6 changes: 4 additions & 2 deletions tests/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import "@testing-library/jest-dom";

import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";

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

0 comments on commit 818faff

Please sign in to comment.