From ae4ca8ae646ed6906ff0d57bfbc24d3567b9f765 Mon Sep 17 00:00:00 2001 From: Clement Date: Sat, 19 Apr 2025 15:41:03 +0700 Subject: [PATCH] fix: coverage should not analyze the index.ts file --- packages/tiny-react-hooks/vitest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tiny-react-hooks/vitest.config.ts b/packages/tiny-react-hooks/vitest.config.ts index ccfdd4c..12b7c9e 100644 --- a/packages/tiny-react-hooks/vitest.config.ts +++ b/packages/tiny-react-hooks/vitest.config.ts @@ -8,6 +8,8 @@ export default defineConfig({ coverage: { provider: 'v8', extension: ['.ts'], + include: ['src/**/*.ts'], + exclude: ['src/**/index.ts'] }, }, });