From 7c9d811c011b720a488adbe35e57fa7eca13c580 Mon Sep 17 00:00:00 2001 From: matttdawson <89495499+matttdawson@users.noreply.github.com> Date: Mon, 3 Feb 2025 09:32:24 +1300 Subject: [PATCH] exclude test util from build --- tsconfig.json | 1 + vitest.config.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 8db2cc1f..b084fba4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { // see https://www.typescriptlang.org/tsconfig to better understand tsconfigs "include": ["src", "./vite.config.ts"], + "exclude": ["**/testUtils.ts"], "compilerOptions": { "baseUrl": "./src", "module": "esnext", diff --git a/vitest.config.ts b/vitest.config.ts index 37baeb1b..f79f02ec 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,7 +3,6 @@ import { defineConfig } from 'vitest/config' export default defineConfig({ test: { - globals: true, setupFiles: ['./vitest.setup.ts'], environment: 'jsdom', server: {