-
Steps to reproduce.
|
Beta Was this translation helpful? Give feedback.
Answered by
BowlingX
Jun 25, 2022
Replies: 1 comment
-
Thank you for your Question. You have to provide the If you use According to your Feedback this error is now more clear in version |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BowlingX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your Question.
You have to provide the
<GeschichteContextProvider />
in your testing render tree.Any hooks (e.g. useQuery etc) cannot be used without the Provider.
If you use
history
you can have an example how I did it for the library tests here:https://github.com/BowlingX/geschichte/blob/master/src/__tests__/index.tsx#L101
According to your Feedback this error is now more clear in version
10.0.2
.