You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upgrading jest-dom dependency from 5.11.0 to 5.16.4
What happened:
existing passing tests broke.
Reproduction:
Problem description:
Upgrading a minor version shouldn't break existing APIs.
Suggested solution:
Make sure the implementation of toBeVisible and toBeInTheDocument work with jest-environment-node and jest-environment-jsdom not just jest-environment-jsdom.
It seems the usage of element.getRootNode in toBeVisible and toBeInTheDocument does not work when using jest-environment-node.
Is there a way to change the implementation so that it works in both environments?
The text was updated successfully, but these errors were encountered:
@testing-library/jest-dom
version: any version since 5.11.10node
version: 16.15.0npm
version: 7.2.0aurelia-testing
version: 1.1.0Relevant code or config:
We are using the default jest
testEnvironment
ofnode
.What you did:
upgrading
jest-dom
dependency from5.11.0
to5.16.4
What happened:
existing passing tests broke.
Reproduction:
Problem description:
Upgrading a minor version shouldn't break existing APIs.
Suggested solution:
Make sure the implementation of
toBeVisible
andtoBeInTheDocument
work withjest-environment-node
andjest-environment-jsdom
not justjest-environment-jsdom
.It seems the usage of
element.getRootNode
intoBeVisible
andtoBeInTheDocument
does not work when usingjest-environment-node
.Is there a way to change the implementation so that it works in both environments?
The text was updated successfully, but these errors were encountered: