Conversation
…der' providers already configured in 'beforeEach'
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughSimplified test provider configuration in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 63872ff
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
…der' providers already configured in 'beforeEach' (TanStack#10541)
🎯 Changes
Removes the duplicate
providersargument fromrender(Page, { providers: [...] })ininject-queries.test.ts. ThebeforeEachhook already configures the same providers viaTestBed.configureTestingModule, so@testing-library/angular'srender()inherits them and the explicit second registration is redundant.Before
After
Scope
Only the two call sites in
injectQueries's top-level tests — theisRestoringblock still callsTestBed.resetTestingModule()and must re-register providers (includingprovideIsRestoring), so it's intentionally left untouched.Verification
@tanstack/angular-query-experimental— 208 tests passed, 0 type errorssrc/inject-queries.tscoverage unchanged (100% across Stmts/Branch/Funcs/Lines)✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit