Skip to content

Commit

Permalink
fix: exclude Playwright tests from Vitest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
amalv committed Jan 6, 2024
1 parent 3b1ed19 commit dc6daa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand All @@ -15,6 +16,8 @@ export default defineConfig({
"**/vite-env.d.ts",
"**/.styles.ts",
"**/index.ts",
"**/tests/**",
"**/tests-examples/**",
],
},
},
Expand Down

0 comments on commit dc6daa5

Please sign in to comment.