Skip to content

test(query-persist-client-core/createPersister): fix typo 'persiste' to 'persist' and 'persistance' to 'persistence'#10548

Merged
sukvvon merged 1 commit intomainfrom
test/query-persist-client-core-fix-persistence-typo
Apr 21, 2026
Merged

test(query-persist-client-core/createPersister): fix typo 'persiste' to 'persist' and 'persistance' to 'persistence'#10548
sukvvon merged 1 commit intomainfrom
test/query-persist-client-core-fix-persistence-typo

Conversation

@sukvvon
Copy link
Copy Markdown
Collaborator

@sukvvon sukvvon commented Apr 21, 2026

🎯 Changes

Fixes typos in it descriptions in createPersister.test.ts:

  • 'Should properly persiste basic query''Should properly persist basic query' (2 occurrences)
  • 'Should skip persistance if storage is not provided''Should skip persistence if storage is not provided' (2 occurrences)
  • 'should skip persistance if query was not found''should skip persistence if query was not found'

Resolves the cspell/spellchecker warnings that flagged "persiste" as an unknown word and "persistance" as a misspelling of "persistence".

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 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
    • Updated test descriptions for accuracy and consistency.

…to 'persist' and 'persistance' to 'persistence'
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 21, 2026

📝 Walkthrough

Walkthrough

Spelling and capitalization corrections in test case descriptions within the persister test suite. Test titles are updated to fix "persiste" to "persist"/"persistence" and correct capitalization inconsistencies. No test logic or assertions are modified.

Changes

Cohort / File(s) Summary
Test Description Corrections
packages/query-persist-client-core/src/__tests__/createPersister.test.ts
Fixed spelling errors ("persiste" → "persist"/"persistence") and capitalization inconsistencies in test case titles within persistQuery and persistQueryByKey test groups.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A typo here, a typo there,
"Persiste" floating in the air,
Now "persist" shines bright and clear,
Tests well-labeled, crisp and dear! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: fixing typos in test descriptions by replacing 'persiste' with 'persist' and 'persistance' with 'persistence'.
Description check ✅ Passed The description follows the template structure with all required sections: Changes section details specific typo fixes, Checklist items are completed, and Release Impact correctly identifies this as dev-only with no changeset needed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/query-persist-client-core-fix-persistence-typo

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 21, 2026

View your CI Pipeline Execution ↗ for commit 143aec6

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

☁️ Nx Cloud last updated this comment at 2026-04-21 17:11:13 UTC

@sukvvon sukvvon self-assigned this Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
packages/query-persist-client-core/src/__tests__/createPersister.test.ts (1)

439-439: Consider aligning capitalization with file convention.

These test descriptions use "Should" (capital S), while the rest of the file consistently uses "should" (lowercase). For consistency with the file's existing style, consider changing "Should" to "should" in these descriptions.

📝 Suggested capitalization fixes
-    it('Should properly persist basic query', async () => {
+    it('should properly persist basic query', async () => {
-    it('Should skip persistence if storage is not provided', async () => {
+    it('should skip persistence if storage is not provided', async () => {

(Apply the same change to line 476 and 503)

Also applies to: 461-461, 476-476, 503-503

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/query-persist-client-core/src/__tests__/createPersister.test.ts` at
line 439, Change the test description strings to use lowercase "should" for
consistency with the file's convention: update the it(...) calls whose titles
currently start with "Should" (e.g., "Should properly persist basic query" and
the other two test strings referenced) to start with "should" instead; locate
these in the tests for createPersister (the it() blocks) and edit the title
strings only so casing matches the rest of the file.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/query-persist-client-core/src/__tests__/createPersister.test.ts`:
- Line 439: Change the test description strings to use lowercase "should" for
consistency with the file's convention: update the it(...) calls whose titles
currently start with "Should" (e.g., "Should properly persist basic query" and
the other two test strings referenced) to start with "should" instead; locate
these in the tests for createPersister (the it() blocks) and edit the title
strings only so casing matches the rest of the file.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 27f33200-e0d9-4cdc-9f5d-55a1abab925a

📥 Commits

Reviewing files that changed from the base of the PR and between fc8a6a9 and 143aec6.

📒 Files selected for processing (1)
  • packages/query-persist-client-core/src/__tests__/createPersister.test.ts

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 21, 2026

More templates

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/preact-query

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

@tanstack/preact-query-devtools

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

@tanstack/preact-query-persist-client

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/query-sync-storage-persister

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

@tanstack/react-query

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query

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

@tanstack/svelte-query-devtools

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

@tanstack/svelte-query-persist-client

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

@tanstack/vue-query

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

@tanstack/vue-query-devtools

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

commit: 143aec6

@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
react full 11.99 KB (0%)
react minimal 9.02 KB (0%)

@sukvvon sukvvon merged commit eec2abe into main Apr 21, 2026
10 checks passed
@sukvvon sukvvon deleted the test/query-persist-client-core-fix-persistence-typo branch April 21, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant