How do you test for the non-existence of an element with vitest browser testing? #7442
Unanswered
dwjohnston
asked this question in
Q&A
Replies: 1 comment
-
You can find |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just discovered vitest browser testing, having pretty experienced with react-testing-library.
How would I assert on the non-existence of an element?
For example, it's quite common for me to write RTL test like:
Or if it's async:
Beta Was this translation helpful? Give feedback.
All reactions