Skip to content

Commit 39e8c36

Browse files
Migrate to React Testing Library (#97)
* Migrate to React Testing Library * Actually use Strict Mode in Strict Mode test * Tweak test strategy for hooks under prop changes * Revert "Tweak test strategy for hooks under prop changes" This reverts commit dc99847.
1 parent 91f08d3 commit 39e8c36

File tree

8 files changed

+1030
-1037
lines changed

8 files changed

+1030
-1037
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
"@storybook/preset-typescript": "^1.2.0",
6868
"@storybook/react": "^5.2.6",
6969
"@stripe/stripe-js": "^1.2.0",
70-
"@types/enzyme": "^3.10.4",
70+
"@testing-library/jest-dom": "^5.8.0",
71+
"@testing-library/react": "^10.0.4",
72+
"@testing-library/react-hooks": "^3.2.1",
7173
"@types/jest": "^25.1.1",
7274
"@types/react": "^16.9.19",
7375
"@types/react-dom": "^16.9.5",
@@ -77,8 +79,6 @@
7779
"babel-eslint": "^10.0.3",
7880
"babel-jest": "^24.9.0",
7981
"babel-loader": "^8.0.6",
80-
"enzyme": "3.10",
81-
"enzyme-adapter-react-16": "^1.14.0",
8282
"eslint": "6.6.0",
8383
"eslint-config-airbnb": "18.0.1",
8484
"eslint-config-prettier": "^6.10.0",
@@ -94,6 +94,7 @@
9494
"react": "~16.9.0",
9595
"react-docgen-typescript-loader": "^3.6.0",
9696
"react-dom": "~16.9.0",
97+
"react-test-renderer": "16.9",
9798
"rimraf": "^2.6.2",
9899
"rollup": "^1.27.0",
99100
"rollup-plugin-babel": "^4.3.3",

src/components/Elements.test.js

Lines changed: 0 additions & 323 deletions
This file was deleted.

0 commit comments

Comments
 (0)