diff --git a/vitest.config.ts b/vitest.config.ts index b654195..69e42c0 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,12 +1,13 @@ -import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tsconfigPaths from "vite-tsconfig-paths"; +import { configDefaults, defineConfig } from "vitest/config"; export default defineConfig({ plugins: [react(), tsconfigPaths()], test: { globals: true, environment: "jsdom", + exclude: [...configDefaults.exclude, "**/tests/**", "**/tests-examples/**"], setupFiles: "./tests.setup.ts", coverage: { exclude: [ @@ -15,6 +16,8 @@ export default defineConfig({ "**/vite-env.d.ts", "**/.styles.ts", "**/index.ts", + "**/tests/**", + "**/tests-examples/**", ], }, },