From ad4eb99e22c855d8856b86e0a68c93fab38bd251 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 2 Apr 2026 00:04:00 -0700 Subject: [PATCH] Exclude perf tests from Vitest default runs - Keep `bun run test` focused on non-perf suites --- apps/web/vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 01b5076695..859353a704 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -2,6 +2,7 @@ import tailwindcss from "@tailwindcss/vite"; import react, { reactCompilerPreset } from "@vitejs/plugin-react"; import babel from "@rolldown/plugin-babel"; import { tanstackRouter } from "@tanstack/router-plugin/vite"; +import { configDefaults } from "vitest/config"; import { defineConfig } from "vite"; import pkg from "./package.json" with { type: "json" }; @@ -102,4 +103,7 @@ export default defineConfig({ emptyOutDir: true, sourcemap: buildSourcemap, }, + test: { + exclude: [...configDefaults.exclude, "test/perf/**/*.perf.test.ts"], + }, });