Skip to content

chore(preact-query/vite.config): exclude '__tests__' directory from coverage reports#10124

Merged
TkDodo merged 2 commits intoTanStack:mainfrom
sukvvon:chore/preact-query-vite-config-exclude-tests-from-coverage
Feb 13, 2026
Merged

chore(preact-query/vite.config): exclude '__tests__' directory from coverage reports#10124
TkDodo merged 2 commits intoTanStack:mainfrom
sukvvon:chore/preact-query-vite-config-exclude-tests-from-coverage

Conversation

@sukvvon
Copy link
Contributor

@sukvvon sukvvon commented Feb 13, 2026

🎯 Changes

Exclude src/__tests__/** from coverage reports in preact-query, consistent with other packages (query-core, react-query, solid-query, etc.).

✅ 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

  • Chores
    • Updated test coverage configuration to exclude test files from coverage reporting metrics.

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: 70fb1c3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

📝 Walkthrough

Walkthrough

The Vitest coverage configuration in packages/preact-query/vite.config.ts has been updated to exclude test files from code coverage reporting. The change adds an exclude pattern targeting src/__tests__/** to the existing coverage configuration.

Changes

Cohort / File(s) Summary
Vitest Coverage Configuration
packages/preact-query/vite.config.ts
Added exclude pattern to Vitest coverage config to exclude test files (src/__tests__/**) from coverage reporting.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • TkDodo

Poem

🐰 A carrot of wisdom, so small yet so fine,
Excluding the test files from coverage's line,
Less noise in reports means clearer the view,
With src/__tests__/** tucked away from the few! 🥕✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: excluding the tests directory from coverage reports in the preact-query vite.config file.
Description check ✅ Passed The description follows the template structure, includes clear explanation of changes, completed checklist items, and correctly identifies this as a docs/CI/dev-only change with no release impact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


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

@nx-cloud
Copy link

nx-cloud bot commented Feb 13, 2026

View your CI Pipeline Execution ↗ for commit 70fb1c3

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

☁️ Nx Cloud last updated this comment at 2026-02-13 01:44:02 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 13, 2026

More templates

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/preact-query

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/query-sync-storage-persister

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

@tanstack/react-query

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query

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

@tanstack/svelte-query-devtools

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

@tanstack/svelte-query-persist-client

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

@tanstack/vue-query

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

@tanstack/vue-query-devtools

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

commit: 70fb1c3

@TkDodo TkDodo merged commit 8830b73 into TanStack:main Feb 13, 2026
7 checks passed
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.

2 participants