-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
test(solid-query): use fake timers for useMutation.test.tsx #9081
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(solid-query): use fake timers for useMutation.test.tsx #9081
Conversation
View your CI Pipeline Execution ↗ for commit 7a77af9.
☁️ Nx Cloud last updated this comment at |
@@ -351,7 +355,7 @@ describe('useMutation', () => { | |||
</QueryClientProvider> | |||
)) | |||
|
|||
await sleep(100) | |||
await vi.advanceTimersByTimeAsync(10) |
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.
Strictly but not flaky
@@ -404,7 +408,7 @@ describe('useMutation', () => { | |||
</QueryClientProvider> | |||
)) | |||
|
|||
await sleep(100) | |||
await vi.advanceTimersByTimeAsync(10) |
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.
Strictly but not flaky
@@ -452,7 +453,7 @@ describe('useMutation', () => { | |||
</QueryClientProvider> | |||
)) | |||
|
|||
await sleep(100) | |||
await vi.advanceTimersByTimeAsync(20) |
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.
Strictly but not flaky
@@ -489,7 +490,7 @@ describe('useMutation', () => { | |||
</QueryClientProvider> | |||
)) | |||
|
|||
await sleep(100) | |||
await vi.advanceTimersByTimeAsync(20) |
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.
Strictly but not flaky
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9081 +/- ##
===========================================
+ Coverage 44.56% 79.76% +35.19%
===========================================
Files 203 16 -187
Lines 8101 336 -7765
Branches 1809 63 -1746
===========================================
- Hits 3610 268 -3342
+ Misses 4059 56 -4003
+ Partials 432 12 -420
🚀 New features to boost your workflow:
|
No description provided.