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
tests are running correctly, but a warning appears in console. How can I fix this?
Warning: An update to TimerRoot 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 */
tests are running correctly, but a warning appears in console. How can I fix this?
Demo - https://stackblitz.com/edit/vitejs-vite-7zbv1rkb?file=src%2FApp.test.tsx
Run
npm run test
The text was updated successfully, but these errors were encountered: