Issues with Richtext and vitest #949
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Describe the issue you're facing
User reported :
We are using Storyblok with nuxt and use the renderRichtext function, which is working fine. But, when we use it inside a vitest test, we get the following error and cannot find anything in the docs or elsewhere.
"Please initialize the Storyblok SDK before calling the renderRichText function"
What should we do?
Thanks!
And added some more details on that:
Yes you can. I don't know how it helps in this case, because we really do nothing but calling the function in our test and it fails with said error.
Do you have a hint here, please? I guess that the function doesn't have access to the outside instance of the JS client?
Reproduction
N/A
Steps to reproduce
No response
System Info
Waiting for author
Used Package Manager
npm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: