-
Hi folks, We are in the process of writing some e2e tests for our project. For context, we are using github actions as our CI platform and one of the core e2e tests loads the main shop page, adds an item to the cart, and check that item has been added to the cart. The issue we are now running into is all the Cheers in advance for any help. 🍻 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! We actually have E2E tests running on GH Actions which hit I can see the desire to mock them, though. I wonder if there's an opportunity to use an HTTP-level mocking library, something like https://github.com/nock/nock. I have not tried, though! |
Beta Was this translation helpful? Give feedback.
Hi! We actually have E2E tests running on GH Actions which hit
useShopQuery
just fine: https://github.com/Shopify/hydrogen/tree/1103fb575e51d5948c6bd4885bcd911be1f8bf7e/templates/demo-store/tests/e2e (deleted from our main branch but we will soon be adding them back).I can see the desire to mock them, though. I wonder if there's an opportunity to use an HTTP-level mocking library, something like https://github.com/nock/nock. I have not tried, though!