Skip to content
Source
Sign inSign up
TanStack/query

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

Mergedsukvvon(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/12730/headmerged by sukvvon(GitHub profile, opens in a new tab) View on GitHub

sukvvon(GitHub profile, opens in a new tab)commented

🎯 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.
    1. sukvvon(GitHub profile, opens in a new tab) assignedsukvvon

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      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 nameStatusExplanation
      Title checkPassedThe 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 checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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 e16fe4866992956638f819886b55c1dda30a96f5 and ba34c9a611844b608fff527b7c1ad951525069e7.

      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.

    3. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit ba34c9a611844b608fff527b7c1ad951525069e7

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded8m 29sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded30sView ↗

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

    4. 🚀 Changeset Version Preview

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

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/query-core5.108.4 → 5.108.5Changeset
      @tanstack/query-devtools5.108.4 → 5.108.5Changeset
      @tanstack/angular-query5.108.4 → 5.108.5Dependent
      @tanstack/angular-query-devtools5.108.4 → 5.108.5Dependent
      @tanstack/angular-query-persist-client5.108.4 → 5.108.5Dependent
      @tanstack/eslint-plugin-query5.108.4 → 5.108.5Dependent
      @tanstack/lit-query0.2.44 → 0.2.45Dependent
      @tanstack/preact-query5.108.4 → 5.108.5Dependent
      @tanstack/preact-query-devtools5.108.4 → 5.108.5Dependent
      @tanstack/preact-query-persist-client5.108.4 → 5.108.5Dependent
      @tanstack/query-async-storage-persister5.108.4 → 5.108.5Dependent
      @tanstack/query-broadcast-client-experimental5.108.4 → 5.108.5Dependent
      @tanstack/query-persist-client-core5.108.4 → 5.108.5Dependent
      @tanstack/query-sync-storage-persister5.108.4 → 5.108.5Dependent
      @tanstack/react-query5.108.4 → 5.108.5Dependent
      @tanstack/react-query-devtools5.108.4 → 5.108.5Dependent
      @tanstack/react-query-next-experimental5.108.4 → 5.108.5Dependent
      @tanstack/react-query-persist-client5.108.4 → 5.108.5Dependent
      @tanstack/solid-query5.108.4 → 5.108.5Dependent
      @tanstack/solid-query-devtools5.108.4 → 5.108.5Dependent
      @tanstack/solid-query-persist-client5.108.4 → 5.108.5Dependent
      @tanstack/svelte-query6.4.7 → 6.4.8Dependent
      @tanstack/svelte-query-devtools6.4.7 → 6.4.8Dependent
      @tanstack/svelte-query-persist-client6.4.7 → 6.4.8Dependent
      @tanstack/vue-query5.108.4 → 5.108.5Dependent
      @tanstack/vue-query-devtools6.4.7 → 6.4.8Dependent
    5. 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

    6. size-limit report 📦

      PathSize
      react full11.97 KB (0%)
      react minimal8.71 KB (0%)

Sign in to join this conversation.