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
Warning: An update to App inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act
in App (at App.spec.js:52)
console.error node_modules/react-dom/cjs/react-dom.development.js:88
Warning: An update to App inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act
in App (created by WrapperComponent)
in WrapperComponent
The text was updated successfully, but these errors were encountered:
Warning: An update to App inside a test was not wrapped in act(...).
console.error node_modules/react-dom/cjs/react-dom.development.js:88
Warning: An update to App inside a test was not wrapped in act(...).
The text was updated successfully, but these errors were encountered: