diff --git a/tsconfig.json b/tsconfig.json index 4b0a17f..310c8e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,5 +11,8 @@ "strict": true, "moduleResolution": "bundler", "allowImportingTsExtensions": false, + "types": [ + "vitest/globals" + ] } } diff --git a/vite.config.ts b/vite.config.ts index fc4f095..f8d70c5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,11 +12,10 @@ export default defineConfig({ test: { globals: true, environment: 'jsdom', - include: ['src/**/*.{js,ts}'], exclude: ['**/node_modules/**', '.*\\.d\\.ts$', '.*\\.spec\\.ts$'], coverage: { reporter: ['text', 'html'], - include: ['src/**/*.{js,ts}'], + include: ['src/lib/**/*.{js,ts}'], } } });