Skip to content

test(*): start test titles with 'should' - #12730

Merged
sukvvon merged 6 commits into
mainfrom
test/start-test-titles-with-should
Dec 3, 2026
Merged

sukvvon merged 6 commits into
mainfrom
test/start-test-titles-with-should

Conversation

@sukvvon

@sukvvon sukvvon commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

🎯 Changes

Renames the remaining it/test titles that don't start with should so every test title in packages/ follows the same form.

  • angular-query, angular-query-persist-client, query-core, query-devtools, react-query, vue-query-devtools
  • Covers single-line, multi-line and it.each(...)(...) titles.
  • Verbs are moved to the base form after should (e.g. restores cache … and keeps it idle → should restore cache … and keep it idle).
  • Titles that started with a subject move the subject later (e.g. browser hydrates from default key → should hydrate from the default key in the browser).
  • Issue-prefixed titles in upstream-issues.test.ts put the issue number at the end (e.g. should … (#9910)).
  • Only titles change. A few it.each calls are re-wrapped by oxfmt because of the longer titles.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Tests
    • Standardized test descriptions across Angular, React, Vue, core, and devtools packages to consistently state expected behavior. Test logic, assertions, and product behavior are unchanged.

@sukvvon sukvvon self-assigned this Dec 3, 2026
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Test descriptions across Angular, React, Vue, query-core, and devtools suites were reworded, often to use “should” phrasing. Test logic and assertions remain unchanged. One migration test block was reformatted without changing its cases.

Changes: Test description wording

Layer / File(s) Summary
Consistent test descriptions
packages/angular-query-persist-client/src/__tests__/with-persist-query-client.test.ts, packages/angular-query/schematics-build/*.test.ts, packages/angular-query/src/__tests__/*, packages/angular-query/src/utils/__test__/inject-external-store.test.ts, packages/query-core/src/__tests__/*, packages/query-devtools/src/__tests__/*, packages/react-query/src/__tests__/placeholderData.test.ts, packages/vue-query-devtools/src/__tests__/client.test.ts
Test descriptions were reworded across package suites. Some descriptions clarify the behavior already covered by their unchanged tests. The dependency pin-policy test block was reformatted, and its cases remain unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: benjavicente, tkdodo

Merge Risk: Minimal · up to ba34c

This pull request only rewords test titles to start with "should". It does not change library behavior or what the tests check, so it carries no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(*): start test titles with 'should'" matches the changeset. The PR renames test titles across the listed packages so each one starts with "should". The title is short, specific, and na…
Description check Passed The description follows the repository template. It has the Changes section with a clear explanation of the rename and its scope. The Checklist items are marked. The Release Impact section marks the c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(*): start test titles with 'should'" matches the changeset. The PR renames test titles across the listed packages so each one starts with "should". The title is short, specific, and names the main change. It uses a conventional-commit prefix, which is acceptable.

Full details: Description check

Explanation

The description follows the repository template. It has the Changes section with a clear explanation of the rename and its scope. The Checklist items are marked. The Release Impact section marks the change as docs/CI/dev-only with no release. The description matches the summarized changes, which are title-only edits across the listed packages.

Finishing Touches

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e16fe48 and ba34c9a.

Files selected for processing: 32

  • packages/angular-query-persist-client/src/__tests__/with-persist-query-client.test.ts
  • packages/angular-query/schematics-build/migrate-from-experimental.test.ts
  • packages/angular-query/schematics-build/ng-add.test.ts
  • packages/angular-query/src/__tests__/inject-infinite-query.test-d.ts
  • packages/angular-query/src/__tests__/inject-infinite-query.test.ts
  • packages/angular-query/src/__tests__/inject-is-restoring.test.ts
  • packages/angular-query/src/__tests__/inject-mutation-state.test.ts
  • packages/angular-query/src/__tests__/inject-mutation.test-d.ts
  • packages/angular-query/src/__tests__/inject-mutation.test.ts
  • packages/angular-query/src/__tests__/inject-queries.test-d.ts
  • packages/angular-query/src/__tests__/inject-queries.test.ts
  • packages/angular-query/src/__tests__/inject-query-lifecycle.test.ts
  • packages/angular-query/src/__tests__/inject-query.test.ts
  • packages/angular-query/src/__tests__/pending-tasks-ssr.zoneful.test.ts
  • packages/angular-query/src/__tests__/pending-tasks.test.ts
  • packages/angular-query/src/__tests__/provide-tanstack-query.test-d.ts
  • packages/angular-query/src/__tests__/provide-tanstack-query.test.ts
  • packages/angular-query/src/__tests__/query-options.test.ts
  • packages/angular-query/src/__tests__/signal-proxy.test.ts
  • packages/angular-query/src/__tests__/upstream-issues.test.ts
  • packages/angular-query/src/__tests__/with-hydration.test.ts
  • packages/angular-query/src/__tests__/zoneful-integration.test.ts
  • packages/angular-query/src/utils/__test__/inject-external-store.test.ts
  • packages/query-core/src/__tests__/cacheGc.test.tsx
  • packages/query-core/src/__tests__/queriesObserver.test.tsx
  • packages/query-devtools/src/__tests__/Devtools.test.tsx
  • packages/query-devtools/src/__tests__/Explorer.test.tsx
  • packages/query-devtools/src/__tests__/VirtualList.test.tsx
  • packages/query-devtools/src/__tests__/explorerSearch.test.ts
  • packages/query-devtools/src/__tests__/utils.test.ts
  • packages/react-query/src/__tests__/placeholderData.test.ts
  • packages/vue-query-devtools/src/__tests__/client.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@nx-cloud

nx-cloud Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit ba34c9a

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 8m 29s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 30s View ↗

☁️ Nx Cloud last updated this comment at 2026-12-03 12:22:18 UTC

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

2 package(s) bumped directly, 24 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/query-core 5.108.4 → 5.108.5 Changeset
@tanstack/query-devtools 5.108.4 → 5.108.5 Changeset
@tanstack/angular-query 5.108.4 → 5.108.5 Dependent
@tanstack/angular-query-devtools 5.108.4 → 5.108.5 Dependent
@tanstack/angular-query-persist-client 5.108.4 → 5.108.5 Dependent
@tanstack/eslint-plugin-query 5.108.4 → 5.108.5 Dependent
@tanstack/lit-query 0.2.44 → 0.2.45 Dependent
@tanstack/preact-query 5.108.4 → 5.108.5 Dependent
@tanstack/preact-query-devtools 5.108.4 → 5.108.5 Dependent
@tanstack/preact-query-persist-client 5.108.4 → 5.108.5 Dependent
@tanstack/query-async-storage-persister 5.108.4 → 5.108.5 Dependent
@tanstack/query-broadcast-client-experimental 5.108.4 → 5.108.5 Dependent
@tanstack/query-persist-client-core 5.108.4 → 5.108.5 Dependent
@tanstack/query-sync-storage-persister 5.108.4 → 5.108.5 Dependent
@tanstack/react-query 5.108.4 → 5.108.5 Dependent
@tanstack/react-query-devtools 5.108.4 → 5.108.5 Dependent
@tanstack/react-query-next-experimental 5.108.4 → 5.108.5 Dependent
@tanstack/react-query-persist-client 5.108.4 → 5.108.5 Dependent
@tanstack/solid-query 5.108.4 → 5.108.5 Dependent
@tanstack/solid-query-devtools 5.108.4 → 5.108.5 Dependent
@tanstack/solid-query-persist-client 5.108.4 → 5.108.5 Dependent
@tanstack/svelte-query 6.4.7 → 6.4.8 Dependent
@tanstack/svelte-query-devtools 6.4.7 → 6.4.8 Dependent
@tanstack/svelte-query-persist-client 6.4.7 → 6.4.8 Dependent
@tanstack/vue-query 5.108.4 → 5.108.5 Dependent
@tanstack/vue-query-devtools 6.4.7 → 6.4.8 Dependent

@pkg-pr-new

pkg-pr-new Bot commented Dec 3, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-query

npm i https://pkg.pr.new/@tanstack/angular-query@12730

@tanstack/angular-query-devtools

npm i https://pkg.pr.new/@tanstack/angular-query-devtools@12730

@tanstack/angular-query-persist-client

npm i https://pkg.pr.new/@tanstack/angular-query-persist-client@12730

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@12730

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@12730

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@12730

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@12730

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@12730

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@12730

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@12730

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@12730

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@12730

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@12730

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@12730

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@12730

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@12730

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@12730

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@12730

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@12730

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@12730

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@12730

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@12730

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@12730

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@12730

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@12730

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@12730

commit: ba34c9a

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
react full 11.97 KB (0%)
react minimal 8.71 KB (0%)

@sukvvon
sukvvon merged commit 5fb7cb7 into main Dec 3, 2026
9 checks passed
@sukvvon
sukvvon deleted the test/start-test-titles-with-should branch December 3, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant