We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e41cda commit f3736e3Copy full SHA for f3736e3
docs/frontend-web-development/react-testing-library.md
@@ -36,7 +36,13 @@
36
As of create-react-app 3.3.0 (2019-12-04), you do not have to do the following steps. `create-react-app` installs the required package for you.
37
38
```sh
39
-npm install --save @testing-library/react @testing-library/jest-dom
+npm install --save-dev @testing-library/react @testing-library/jest-dom
40
+```
41
+
42
+Import `jest-dom` at the beginning for test file
43
44
45
+import '@testing-library/jest-dom/extend-expect';
46
```
47
48
## Running test
0 commit comments