-
Task
-
Resolution: Done
-
Normal
-
None
-
None
The purpose of this task is to remove any warnings in the console for passing unit tests that indicate that an element is not wrapped in act. Example.
console.error Warning: An update to Card inside a test was not wrapped in act(...).
There are currently 805 instances of this warning when the unit tests are run.
This warning/error is due to RTL test finishing before rendering is complete. This usually requires adding a findBy* or a waitFor statement at the end of the test.
- is blocked by
-
OCMUI-529 Snapshot unit test removals
- Closed
-
OCMUI-593 [OCM UI] Unit tests: remove Enzyme from all test files
- Closed
- is cloned by
-
OCMUI-1590 Remove warnings & errors from unit tests - Remove all other warning/errors
- To Do
-
OCMUI-1587 Remove warnings & errors from unit tests - Failed props
- Closed
-
OCMUI-1588 Remove warnings & errors from unit tests - Tag nesting
- Closed
-
OCMUI-1589 Remove warnings & errors from unit tests -unrecognized DOM prop
- Closed
- relates to
-
OCMUI-596 [OCM UI] Unit tests: Fix PropType violations
- Closed
- mentioned on