From 193ef34c3e85ca57166b3cb2af9b3cee2a3724d4 Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Sat, 25 Jul 2026 16:50:13 -0700 Subject: [PATCH] ci: exclude Deno supabase tests from vitest sweep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vitest's default include swept supabase/functions/**/__tests__ and supabase/migrations/__tests__ — those are Deno tests (Deno.test + pglite) that only run under `deno test` and fail under node/jsdom. Add supabase/** to test.exclude so the web test run covers only the Vite app's own suites. --- web/vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index 61eae8f3..04c72adb 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,5 +1,5 @@ /// -import { defineConfig } from "vitest/config"; +import { defineConfig, configDefaults } from "vitest/config"; import react from "@vitejs/plugin-react-swc"; import path from "path"; import { nodePolyfills } from 'vite-plugin-node-polyfills'; @@ -11,6 +11,9 @@ export default defineConfig(({ command }) => ({ globals: true, environment: 'jsdom', setupFiles: './src/tests/setup.ts', + // supabase/** holds Deno tests (Deno.test + pglite) run via `deno test`, + // not vitest — exclude them from the web (node/jsdom) test sweep. + exclude: [...configDefaults.exclude, 'supabase/**'], alias: { 'vite-plugin-node-polyfills/shims/buffer': path.resolve(__dirname, './src/tests/mocks/buffer-shim.ts'), 'vite-plugin-node-polyfills/shims/global': path.resolve(__dirname, './src/tests/mocks/global-shim.ts'),