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
For some reason, when using Sentry.captureException(error) in the ProfileImageInfo component, the storyshots test throw:
Ran all test suites matching /__tests__\/storyshots.test.js/i.
console.error
Warning: An update to DiscordBar 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://reactjs.org/link/wrap-tests-with-act
at DiscordBar (c0d3-app/components/DiscordBar.tsx:740:12)
at div
at div
at div
at Layout (c0d3-app/components/Layout.tsx:205:3)
at Curriculum (c0d3-app/pages/curriculum.tsx:1761:3)
at ApolloProvider (c0d3-app/node_modules/@apollo/client/react/context/ApolloProvider.js:5:21)
at MockedProvider (c0d3-app/node_modules/@apollo/client/utilities/testing/mocking/MockedProvider.js:10:28)
at storyFn
Problem
For some reason, when using
Sentry.captureException(error)
in theProfileImageInfo
component, the storyshots test throw:It seems to be related to #715
The text was updated successfully, but these errors were encountered: