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
When running tests, e.g. using yarn test:unit the terminal is flooded with warnings like:
Warning: An update to $Component 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 */
Some of these warnings can be fixed by wrapping the testStore.dispatch(...) into an act(...) in the tests. However, not all of these warnings are fixable by this approach.
The goal of the current ticket is to get rid of the warnings.
Note: this might be related to our upgrade to React 18.
The text was updated successfully, but these errors were encountered:
Currently, the terminal is spammed when running tests.
Here we suppress output to the terminal related to issue opossum-tool#938.
Signed-off-by: Benedikt Richter <[email protected]>
When running tests, e.g. using
yarn test:unit
the terminal is flooded with warnings like:Some of these warnings can be fixed by wrapping the
testStore.dispatch(...)
into anact(...)
in the tests. However, not all of these warnings are fixable by this approach.The goal of the current ticket is to get rid of the warnings.
Note: this might be related to our upgrade to React 18.
The text was updated successfully, but these errors were encountered: