Skip to content

Commit cf36c29

Browse files
committed
added typescript test for act export
1 parent a72b836 commit cf36c29

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: test/typescript/act.ts

+11
Original file line numberDiff line numberDiff line change
@@ -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+
act(callback)
11+
}

0 commit comments

Comments
 (0)