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.
2 parents 172a3bf + a7870af commit cbaaf5bCopy full SHA for cbaaf5b
test-setup.js
@@ -1,3 +1,9 @@
1
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+// allows you to do things like:
3
+// expect(element).toHaveTextContent(/react/i)
4
+// learn more: https://github.com/testing-library/jest-dom
5
+import '@testing-library/jest-dom';
6
+
7
// Ignore warnings about act()
8
// See https://github.com/testing-library/react-testing-library/issues/281,
9
// https://github.com/facebook/react/issues/14769
0 commit comments