-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
test(query-core/queryClient): add 'advanceTimersByTimeAsync' and remove 'vi.waitFor' #9326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(query-core/queryClient): add 'advanceTimersByTimeAsync' and remove 'vi.waitFor' #9326
Conversation
…sByTime-remove-waitFor
View your CI Pipeline Execution ↗ for commit cf75656.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9326 +/- ##
===========================================
+ Coverage 45.37% 59.69% +14.31%
===========================================
Files 207 136 -71
Lines 8277 5515 -2762
Branches 1871 1485 -386
===========================================
- Hits 3756 3292 -464
+ Misses 4080 1925 -2155
+ Partials 441 298 -143 🚀 New features to boost your workflow:
|
…sByTime-remove-waitFor
await vi.waitFor(() => | ||
expect(queryClient.getQueryData(key1)).toEqual(undefined), | ||
) | ||
await vi.advanceTimersByTimeAsync(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…sByTime-remove-waitFor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
…sByTime-remove-waitFor
…sByTime-remove-waitFor
No description provided.