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
With that configuration, when running jest, React errors should look something like this (notice at File.tsx:NN):
Warning: An update to null 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 Unknown (at edit/index.tsx:43)
in ErrorBoundaryInternal (at ErrorBoundary.tsx:43)
in Unknown
in div (created by Context.Consumer)
in div (created by Context.Consumer)
in Card (created by Styled(Card))
in Styled(Card) (at Card.tsx:94)
in Unknown (at edit/index.tsx:27)
in EditFeatureView (at EditFeatureView.test.tsx:28)
in Provider (at EditFeatureView.test.tsx:19)
in Router (created by MemoryRouter)
in MemoryRouter (at EditFeatureView.test.tsx:17)
About
ttypescript plugin that adds `__source={...}` to JSX elements to improve React error messages