diff --git a/packages/angular-query-experimental/vite.config.ts b/packages/angular-query-experimental/vite.config.ts
index a4d58a77a5..d5337c94ea 100644
--- a/packages/angular-query-experimental/vite.config.ts
+++ b/packages/angular-query-experimental/vite.config.ts
@@ -45,7 +45,7 @@ const config = defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/angular-query-persist-client/vite.config.ts b/packages/angular-query-persist-client/vite.config.ts
index cd95d32df2..3c608b8a48 100644
--- a/packages/angular-query-persist-client/vite.config.ts
+++ b/packages/angular-query-persist-client/vite.config.ts
@@ -21,7 +21,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/eslint-plugin-query/vite.config.ts b/packages/eslint-plugin-query/vite.config.ts
index b9cb0a3ff6..2014b4f928 100644
--- a/packages/eslint-plugin-query/vite.config.ts
+++ b/packages/eslint-plugin-query/vite.config.ts
@@ -21,7 +21,7 @@ const config = defineConfig({
     watch: false,
     globals: true,
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/preact-query-devtools/vite.config.ts b/packages/preact-query-devtools/vite.config.ts
index fdd8f053cf..1532d2458b 100644
--- a/packages/preact-query-devtools/vite.config.ts
+++ b/packages/preact-query-devtools/vite.config.ts
@@ -1,7 +1,7 @@
 import preact from '@preact/preset-vite'
 import { defineConfig } from 'vitest/config'
-import type { UserConfig as ViteUserConfig } from 'vite'
 import packageJson from './package.json'
+import type { UserConfig as ViteUserConfig } from 'vite'
 
 export default defineConfig({
   plugins: [preact() as ViteUserConfig['plugins']],
@@ -16,7 +16,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/preact-query-persist-client/vite.config.ts b/packages/preact-query-persist-client/vite.config.ts
index f18f9c8268..2143431d54 100644
--- a/packages/preact-query-persist-client/vite.config.ts
+++ b/packages/preact-query-persist-client/vite.config.ts
@@ -1,8 +1,7 @@
 import preact from '@preact/preset-vite'
 import { defineConfig } from 'vitest/config'
-import type { UserConfig as ViteUserConfig } from 'vite'
-
 import packageJson from './package.json'
+import type { UserConfig as ViteUserConfig } from 'vite'
 
 export default defineConfig({
   plugins: [preact() as ViteUserConfig['plugins']],
@@ -24,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/preact-query/vite.config.ts b/packages/preact-query/vite.config.ts
index 2d03856908..3333aac2d9 100644
--- a/packages/preact-query/vite.config.ts
+++ b/packages/preact-query/vite.config.ts
@@ -1,8 +1,7 @@
 import preact from '@preact/preset-vite'
 import { defineConfig } from 'vitest/config'
-import type { UserConfig as ViteUserConfig } from 'vite'
-
 import packageJson from './package.json'
+import type { UserConfig as ViteUserConfig } from 'vite'
 
 export default defineConfig({
   plugins: [preact() as ViteUserConfig['plugins']],
@@ -24,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-async-storage-persister/vite.config.ts b/packages/query-async-storage-persister/vite.config.ts
index eae90bc77a..c244c9cc38 100644
--- a/packages/query-async-storage-persister/vite.config.ts
+++ b/packages/query-async-storage-persister/vite.config.ts
@@ -19,7 +19,7 @@ export default defineConfig({
     dir: './src',
     watch: false,
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-broadcast-client-experimental/vite.config.ts b/packages/query-broadcast-client-experimental/vite.config.ts
index bbb12c8c23..84dd64e02c 100644
--- a/packages/query-broadcast-client-experimental/vite.config.ts
+++ b/packages/query-broadcast-client-experimental/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-codemods/vite.config.ts b/packages/query-codemods/vite.config.ts
index bd580e8205..c0905cc530 100644
--- a/packages/query-codemods/vite.config.ts
+++ b/packages/query-codemods/vite.config.ts
@@ -20,7 +20,7 @@ export default defineConfig({
     watch: false,
     globals: true,
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*.{js,ts,cjs,mjs,jsx,tsx}'],
     },
diff --git a/packages/query-core/vite.config.ts b/packages/query-core/vite.config.ts
index a905035c6b..750a402930 100644
--- a/packages/query-core/vite.config.ts
+++ b/packages/query-core/vite.config.ts
@@ -20,7 +20,7 @@ export default defineConfig({
     watch: false,
     environment: 'jsdom',
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-devtools/vite.config.ts b/packages/query-devtools/vite.config.ts
index 9678f07069..c32b0c6ce0 100644
--- a/packages/query-devtools/vite.config.ts
+++ b/packages/query-devtools/vite.config.ts
@@ -22,7 +22,7 @@ export default defineConfig({
     watch: false,
     environment: 'jsdom',
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-persist-client-core/vite.config.ts b/packages/query-persist-client-core/vite.config.ts
index eae90bc77a..c244c9cc38 100644
--- a/packages/query-persist-client-core/vite.config.ts
+++ b/packages/query-persist-client-core/vite.config.ts
@@ -19,7 +19,7 @@ export default defineConfig({
     dir: './src',
     watch: false,
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-sync-storage-persister/vite.config.ts b/packages/query-sync-storage-persister/vite.config.ts
index eae90bc77a..c244c9cc38 100644
--- a/packages/query-sync-storage-persister/vite.config.ts
+++ b/packages/query-sync-storage-persister/vite.config.ts
@@ -19,7 +19,7 @@ export default defineConfig({
     dir: './src',
     watch: false,
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/query-test-utils/vite.config.ts b/packages/query-test-utils/vite.config.ts
index 730e2b979c..b5768319bf 100644
--- a/packages/query-test-utils/vite.config.ts
+++ b/packages/query-test-utils/vite.config.ts
@@ -18,7 +18,11 @@ export default defineConfig({
     name: packageJson.name,
     dir: './src',
     watch: false,
-    coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
+    coverage: {
+      enabled: !!process.env.CI,
+      provider: 'istanbul',
+      include: ['src/**/*'],
+    },
     typecheck: { enabled: true },
     restoreMocks: true,
   },
diff --git a/packages/react-query-devtools/vite.config.ts b/packages/react-query-devtools/vite.config.ts
index 7515e1b400..823b662c58 100644
--- a/packages/react-query-devtools/vite.config.ts
+++ b/packages/react-query-devtools/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/react-query-persist-client/vite.config.ts b/packages/react-query-persist-client/vite.config.ts
index 7515e1b400..823b662c58 100644
--- a/packages/react-query-persist-client/vite.config.ts
+++ b/packages/react-query-persist-client/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/react-query/vite.config.ts b/packages/react-query/vite.config.ts
index bbb12c8c23..84dd64e02c 100644
--- a/packages/react-query/vite.config.ts
+++ b/packages/react-query/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/solid-query-devtools/vite.config.ts b/packages/solid-query-devtools/vite.config.ts
index 4e48d65e08..ced61035f1 100644
--- a/packages/solid-query-devtools/vite.config.ts
+++ b/packages/solid-query-devtools/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/solid-query-persist-client/vite.config.ts b/packages/solid-query-persist-client/vite.config.ts
index 4e48d65e08..ced61035f1 100644
--- a/packages/solid-query-persist-client/vite.config.ts
+++ b/packages/solid-query-persist-client/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/solid-query/vite.config.ts b/packages/solid-query/vite.config.ts
index 4e48d65e08..ced61035f1 100644
--- a/packages/solid-query/vite.config.ts
+++ b/packages/solid-query/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/svelte-query-devtools/vite.config.ts b/packages/svelte-query-devtools/vite.config.ts
index 5b2d97f30f..bf00c1a795 100644
--- a/packages/svelte-query-devtools/vite.config.ts
+++ b/packages/svelte-query-devtools/vite.config.ts
@@ -24,7 +24,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['./tests/test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
     },
diff --git a/packages/svelte-query/vite.config.ts b/packages/svelte-query/vite.config.ts
index bb9fbfeb0c..bf00c1a795 100644
--- a/packages/svelte-query/vite.config.ts
+++ b/packages/svelte-query/vite.config.ts
@@ -23,7 +23,11 @@ export default defineConfig({
     watch: false,
     environment: 'jsdom',
     setupFiles: ['./tests/test-setup.ts'],
-    coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
+    coverage: {
+      enabled: !!process.env.CI,
+      provider: 'istanbul',
+      include: ['src/**/*'],
+    },
     typecheck: { enabled: true },
   },
 })
diff --git a/packages/vue-query-devtools/vite.config.ts b/packages/vue-query-devtools/vite.config.ts
index 443d097a0a..9f07288028 100644
--- a/packages/vue-query-devtools/vite.config.ts
+++ b/packages/vue-query-devtools/vite.config.ts
@@ -23,7 +23,7 @@ const config = defineConfig({
     watch: false,
     environment: 'jsdom',
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
diff --git a/packages/vue-query/vite.config.ts b/packages/vue-query/vite.config.ts
index 2adf260152..fd6932b0b1 100644
--- a/packages/vue-query/vite.config.ts
+++ b/packages/vue-query/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
     environment: 'jsdom',
     setupFiles: ['test-setup.ts'],
     coverage: {
-      enabled: true,
+      enabled: !!process.env.CI,
       provider: 'istanbul',
       include: ['src/**/*'],
       exclude: ['src/__tests__/**'],
