Open zenblender opened 1 year ago
Bumping.
Because of difference between versions of @testing-library/react
and @testing-library/cypress
I've got error like you mentioned.
console.error
Warning: The current testing environment is not configured to support act(...)
I see there is pending PR https://github.com/testing-library/cypress-testing-library/pull/262 .
Since it looks like there is no breaking change between versions, I'm working with pnpm.packageExtensions till there is version bump:
"pnpm": {
"packageExtensions": {
"@testing-library/cypress@9.0.0": {
"dependencies": {
"@testing-library/dom": "^9.0.0"
}
}
}
}
cypress-testing-library
version: 9.0.0node
version: 19.4.0npm
(oryarn
) version: 9.2.0Problem description:
Should this be updated with the latest
@testing-library/dom
? (Currently9.3.1
)I’ve noticed incompatibilities with other libraries that use the latest version of
@testing-library/dom
, such as@testing-library/react
and@testing-library/user-event
. Having both versions 8 and 9 in a project causes confusion and errors, for example about whetheruser-event
actions need to be wrapped inact
.Suggested solution:
Update
cypress-testing-library
to use the latest version of@testing-library/dom
.