We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72b836 commit cf36c29Copy full SHA for cf36c29
test/typescript/act.ts
@@ -0,0 +1,11 @@
1
+import { act } from '@testing-library/react-hooks'
2
+
3
+function checkTypesWithUndefinedResult() {
4
+ const callback = () => undefined;
5
+ act(callback)
6
+}
7
8
+function checkTypesWithVoidResult() {
9
+ const callback = () => {};
10
11
0 commit comments