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'),