Closed
Description
react-hooks-testing-library
version:^8.0.0"react
version: ^18.1.0react-dom
version (if applicable): ^18.1.0"node
version: 14.17.4npm
(oryarn
) version: 6.14.14
Problem description:
I have this error in React v18.1.0, but in React v17.0.2 work good.
Code
This is my code that throws the error.
import { renderHook } from "@testing-library/react-hooks"
import useCounter from "../../hooks/useCounter"
describe("xxxxxxxxxxxxxxx", () => {
test("xxxxxxxxxxxxxxxxxx", () =>{
const r = renderHook(() => useCounter())
console.log(r)
})
})