[Tests] Add coverage for ensureThemeStore utility#7940
Conversation
Add a new unit test suite for the `ensureThemeStore` function in `packages/theme/src/cli/utilities/theme-store.ts`. This improves coverage for the critical CLI flow of ensuring a theme store is correctly identified and persisted. The tests cover: - Store provided via flags. - Store retrieved from local storage when no flag is provided. - AbortError thrown when no store is found.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Description
This PR adds unit tests for the
ensureThemeStoreutility in the@shopify/themepackage. This function is responsible for determining which Shopify store a theme command should act upon, either from a command-line flag or from local storage.How to test your changes?
CI
PR created automatically by Jules for task 13678815188741960686 started by @gonzaloriestra