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 8e08ccf commit 1d7323fCopy full SHA for 1d7323f
examples/__tests__/react-hooks.js
@@ -1,3 +1,9 @@
1
+/*
2
+ * This is the recommended way to test reusable custom react hooks.
3
+ * It is not however recommended to use the testHook utility to test
4
+ * single-use custom hooks. Typically those are better tested by testing
5
+ * the component that is using it.
6
+ */
7
import {testHook, cleanup} from 'react-testing-library'
8
9
import useCounter from '../react-hooks'
0 commit comments