From 7678bad338faa0d2018be098b75a604951cc409f Mon Sep 17 00:00:00 2001
From: w2xi <43wangxi@gmail.com>
Date: Wed, 31 Jul 2024 22:40:11 +0800
Subject: [PATCH] chore: adjust vitest's coverage

---
 vitest.config.mts | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/vitest.config.mts b/vitest.config.mts
index 7b22e15fc..fc0981a56 100644
--- a/vitest.config.mts
+++ b/vitest.config.mts
@@ -1,6 +1,6 @@
 /// <reference types="vitest" />
 
-import { defineConfig } from 'vitest/config'
+import { defineConfig, coverageConfigDefaults } from 'vitest/config'
 import vue from '@vitejs/plugin-vue'
 
 /**
@@ -37,6 +37,18 @@ export default defineConfig({
      */
     environment: 'jsdom',
     css: true,
+    coverage: {
+      exclude: [
+        ...coverageConfigDefaults.exclude,
+        'docs/**',
+        'start/**',
+        'scripts/**',
+        'packages/fighting-add-component/**',
+        'packages/fighting-playground/**',
+        'packages/fighting-eslint-config/**',
+        'packages/fighting-icon/**',
+      ]
+    },
     /**
      * 排除目录
      *