Warning: An update to Dropdown inside a test was not wrapped in act(...).
nathanhannig opened this issue · comments
Nathan Hannig commented
When upgrading to React 18, I have faced this error during React Testing Library/Jest tests.
I just wanted to mention the fix incase others face the similar issue. I am not sure if this is due to use of yarn.
The fix is to remove your /node_modules
, remove yarn.lock
, and then install your dependencies again with yarn install
.