-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
test(react-query/QueryResetErrorBoundary): relocate 'issue-9728' test and migrate to fake timers #10090
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(react-query/QueryResetErrorBoundary): relocate 'issue-9728' test and migrate to fake timers #10090
Conversation
📝 WalkthroughWalkthroughA test file covering issue Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
|
View your CI Pipeline Execution ↗ for commit 394b003
☁️ Nx Cloud last updated this comment at |
0c1a60e to
8611975
Compare
8611975 to
8e53007
Compare
… and migrate to fake timers
8e53007 to
394b003
Compare
🎯 Changes
issue-9728.test.tsxtoQueryResetErrorBoundary.test.tsxunder theuseQuerydescribe blockfindByText) to fake timers (advanceTimersByTimeAsync) patternSuspensewrapper sinceuseQuery(notuseSuspenseQuery) does not trigger suspenseReact.StrictModeto match the original testuseState+useEffectforceUpdate to match the original testqueryClientfrom the describe block instead of creating a local oneretryandstaleTimefromdefaultOptionsto inlineuseQueryoptionsissue-9728.test.tsxfile✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit