How to provide context data to the Outlet in tests #82
Unanswered
jacobleetodd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There!
In our
_layout.tsx
file I am providing context data to the outlet:In my component I am then using the context data:
But I am getting this error in my test (which makes sense):
So how do I provide the context data to the Storybook test? I have been looking at the stories in the repo and the
.dts
files but nothing I've tried seems to work. Here is how we are currently setting up the Storybook tests:Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions