You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
this would be fixed on React 16.9.0, but it is still showing warnings on 16.11.0, related to this issue #25
this only happen when I have multiple it in the same test file
What you did:
tried to run all it tests of a single test file
What happened:
Warning: AnupdatetoMyComponentinsideatestwasnotwrappedinact(...).Whentesting,codethatcausesReactstateupdatesshouldbewrappedintoact(...):
act(()=>{/* fire events that update state */});/* assert on the output */Thisensuresthatyou're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act
Reproduction:
the component that is warning is using useMemo and useFormik (formik package)
Problem description:
it only warns when multiple tests is running
Suggested solution:
create a failing test showing the issue and fix it
Can you help us fix this issue by submitting a pull request?
not sure, where should I start?
The text was updated successfully, but these errors were encountered:
react-native
orexpo
: react-nativereact
version: 16.11.0native-testing-library
version: 5.0.3jest-preset
: @testing-library/react-nativereact-native
version: 0.62.2node
version: 12this would be fixed on React 16.9.0, but it is still showing warnings on 16.11.0, related to this issue #25
this only happen when I have multiple
it
in the same test fileWhat you did:
tried to run all
it
tests of a single test fileWhat happened:
Reproduction:
the component that is warning is using useMemo and useFormik (formik package)
Problem description:
it only warns when multiple tests is running
Suggested solution:
create a failing test showing the issue and fix it
Can you help us fix this issue by submitting a pull request?
not sure, where should I start?
The text was updated successfully, but these errors were encountered: