Error: Uncaught [Error: DialogTrigger
must be used within Dialog
]
#6081
andres-dos-santos
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I'm writing tests on a NextJS website, I use Vitest + testing-library-react for this, but I got the error Error: Uncaught
[Error: DialogTrigger must be used within Dialog]
, but the component I want to test is this one...I don't even have Dialog installed in my project.
The test I wrote was this one.
Why does this happen?
Beta Was this translation helpful? Give feedback.
All reactions