test(solid-query/useQuery): migrate to fake timers, replace 'waitFor' with 'advanceTimersByTimeAsync', and improve 'queryFn' patterns#9894
Conversation
…sByTimeAsync', add 'expect().toBeInTheDocument()', convert sync 'queryFn' to 'sleep().then()', and add detailed timing comments
|
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (1)
You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 948599d
☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9894 +/- ##
===========================================
+ Coverage 45.89% 76.63% +30.74%
===========================================
Files 200 19 -181
Lines 8437 398 -8039
Branches 1943 83 -1860
===========================================
- Hits 3872 305 -3567
+ Misses 4116 76 -4040
+ Partials 449 17 -432
🚀 New features to boost your workflow:
|
…)' pattern in queryFn
… to async/await pattern
|
I converted complex Was this what you had in mind? |
…imers-and-improve-assertions
🎯 Changes
✅ Checklist
pnpm run test:pr.🚀 Release Impact