-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
@viveleroi
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/reactversion: 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