Hydrogen test providers #2139
kcarra
started this conversation in
Ideas + Feature Requests
Replies: 1 comment 2 replies
-
There has been some discussion here Shopify/hydrogen#1802 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Opening this discussion to get some momentum around this topic. As we've started to build out more tests in our hydrogen app we've discovered the need for additional providers to be able to render our client components that import hydrogen components, and server hooks. This pr would get us 90% of the way there when it comes to testing. We still need to solve the problem of unit testing server components, but this unblocks storybook and react testing library/react-hooks for unit testing client components and server hooks. Shopify/hydrogen#2127
Has the hydrogen team thought about alternative solutions to this problem, or do we want to move forward with exporting these providers publicly?
Beta Was this translation helpful? Give feedback.
All reactions