Open
Description
After updating from v15 to v16 of testing-library/react, I'm now getting this error in all of my tests - except the tests still pass just fine.
Warning: The current testing environment is not configured to support act(...)
The error goes away when I downgrade to v15. Since @testing-library/dom is now a peer dep, I tried installing that as well but the error remains.
@testing-library/react
version: 16- Testing Framework and version: vitest, @testing-library/jest
- DOM Environment: jsdom 23.2.0, and I've tried upgrading this too. no change
With v15, here's what yarn why says (no warnings about act):
yarn why @testing-library/dom
├─ @storybook/testing-library@npm:0.1.0
│ └─ @testing-library/dom@npm:8.20.1 (via npm:^8.3.0)
│
├─ @testing-library/react@npm:15.0.7
│ └─ @testing-library/dom@npm:10.1.0 (via npm:^10.0.0)
│
└─ @testing-library/react@npm:15.0.7 [7cdc2]
└─ @testing-library/dom@npm:10.1.0 (via npm:^10.0.0)
In 16 with dom added, here's what why says (warnings on act):
├─ @storybook/testing-library@npm:0.1.0
│ └─ @testing-library/dom@npm:8.20.1 (via npm:^8.3.0)
│
└─ tatsu@workspace:.
└─ @testing-library/dom@npm:10.1.0 (via npm:^10.1.0)
Metadata
Metadata
Assignees
Labels
No labels