The Wire · Showcase
CLI-KIT TESTS JUST GOT REAL
By RepoJournal · Filed · About Shopify
Shopify's CLI now has unit tests for its timing utilities, closing a gap that could have bitten you in production.
Gonzalo Riestra landed unit tests for the `hrtime` utility in `@shopify/cli-kit` [1], covering `startHRTime` and `endHRTimeInMs` [1]. The merge [2] and its associated commits [3] make the timing paths in the CLI kit verifiable, so regressions in performance-sensitive code get caught in CI, not in a merchant's checkout flow. If you've ever had timing weirdness in your Shopify CLI plugins, this is the kind of foundational cleanup that prevents future surprises. Ship your next deploy without worry: the team checked cross-platform impacts (Mac, Linux, Windows) [1], so no platform surprises lurking. With 5 commits and 1 PR across Shopify/cli in the last 24 hours, this is a focused, deliberate addition. Skip the upgrade sprint unless you maintain CLI extensions, but do eyeball the test coverage if you touch `cli-kit` internals.
One email a day. Unsubscribe in one click.
Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review the new hrtime tests in Shopify/cli to ensure your fork aligns Shopify/cli [monitor]
- → If you maintain CLI plugins, verify your dependency version includes this test coverage Shopify/cli [plan]
References
- [1] [Tests] Add unit tests for hrtime utilities ↗ Shopify/cli
- [2] Merge pull request #8051 from Shopify/tests-hrtime-utils-11795562735304887944 Shopify/cli
- [3] [Tests] Add unit tests for hrtime utilities Shopify/cli