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