Jest test checking Devtools in DOM fails after change #2706
Unanswered
julio-dionisio-compass
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Look for the icon that opens the devtools maybe? We have internal tests for the devtools, you can see how to find it there. You could also pass |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working on a project that contains a Jest test that renders an app with
ReactQueryDevTools
, and asserts its class is in the document with the below:await waitFor(() => expect(container.querySelector('.ReactQueryDevtools')).toBeInTheDocument())
The change in
react-query
version 3.17.2 (and after) is now making this test fail. FYI, the test setsprocess.env.NODE_ENV
todevelopment
before rendering.I have not been able to figure out how to make this test pass.
Anyone has any idea on how I can fix the test, or why this is happening?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions