Conversation
…d 'getQueryStatusColorByLabel'
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds test coverage for two color utility functions ( ChangesTest Coverage for Color Utilities
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 99566cb
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Add unit tests for two pure status-to-color mapping helpers in
query-devtools/utils.tsx.getMutationStatusColor— covers the priority ofisPausedover status, plus all branches (error,pending,success,idle)getQueryStatusColorByLabel— covers all 5 labels (fresh,stale,paused,inactive,fetching)These functions take primitive inputs (no
Query/Mutationinstances), so the tests follow textbook unit-test style with no type casts.Coverage for
utils.tsx:✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit