Replies: 1 comment
-
discussion-17.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question: how would you test different data for the same block?
A basic example would be for the price block:
https://github.com/archetype-themes/reference-components/blob/main/components/block-price/block-price.liquid
I want to test that
saved_amount
is correct if there's a compare at priceA brain dump around how we're handling testing. Just wanted to generate some discussion and see how everyone else is handling it. Testing has been a huge pain point for us and get FOMO on going headless every time I have to deal with it.
For small pieces of code, we've been skipping Shopify's renderer altogether and rendering the templates using LiquidJS. We still upload to Shopify and run Playwright for everything else.
Pros:
Cons:
Beta Was this translation helpful? Give feedback.
All reactions