Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Commit 1cbfd1d

Browse files
committed
Fix the issue.
1 parent 402daa5 commit 1cbfd1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hello.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import React from "react"
22
import { render } from "@testing-library/react"
3+
import { act } from "react-dom/test-utils"
4+
5+
act(() => ({ then: () => {} })).then(() => {})
36

47
const Hello = () => {
58
const promise = Promise.reject("Oh no!")

0 commit comments

Comments
 (0)