Skip to content

Commit 039b0bf

Browse files
committed
Fix test by using async act
1 parent 19f6bc7 commit 039b0bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fixtures/dom/src/__tests__/wrong-act-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ it("doesn't warn when you use the right act + renderer: test", () => {
8181
});
8282
});
8383

84-
it('resets correctly across renderers', () => {
84+
it('resets correctly across renderers', async () => {
8585
function Effecty() {
8686
React.useEffect(() => {}, []);
8787
return null;
8888
}
89-
TestUtils.act(() => {
89+
await TestUtils.act(async () => {
9090
TestRenderer.act(() => {});
9191
expect(() => {
9292
TestRenderer.create(<Effecty />);

0 commit comments

Comments
 (0)