Repository navigation
test(query-core/streamedQuery): consume the signal with 'void context.signal' instead of an always-truthy condition, and explain the kept 'require-await' disables - #12337
Conversation
….signal' instead of an always-truthy condition, and explain the kept 'require-await' disables
|
|
View your CI Pipeline Execution ↗ for commit de92bb9
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview5 package(s) bumped directly, 19 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Abort test generators packages/query-core/src/__tests__/streamedQuery.test.tsx |
The abort-on-refetch and abort-on-unsubscribe tests always produce three values. Three lint suppression comments explain that the async generators meet the streamFn async-iterable contract. |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Other
Possibly related PRs
- TanStack/query#12293: It changes the
createKeytest utility contract used by this test file.
Suggested reviewers: dogpawhat
Merge Risk: 
Minimal · up to de92b
-
The test-only updates are mergeable with normal checks.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
size-limit report 📦
|
🎯 Changes
context.signal ? 3 : 0, an always-truthy condition kept behind anoxlint-disable-next-line typescript/no-unnecessary-conditioncomment. Consume it withvoid context.signal, like the other query-core tests do, and pass3directly. The tests still fail without this line.typescript/require-awaitdisables:streamFnneeds an async iterable, and those generators have nothing to await.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit