From 34f70b2ba48097cb48cec57b8f1e4a3569200f2f Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 11 Feb 2026 21:26:50 +0000 Subject: [PATCH] Exclude test files from frontend production TypeScript build Test files use Vitest globals (vi, describe, it, expect) which aren't available to tsc during production builds. Exclude __tests__ dirs and *.test.* / *.spec.* files from tsconfig.app.json so tsc -b succeeds. --- frontend/tsconfig.app.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index 74704af..729c059 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -34,5 +34,10 @@ "include": [ "src", "public/HexgridHeatmap.js", + ], + "exclude": [ + "src/**/__tests__/**", + "src/**/*.test.*", + "src/**/*.spec.*" ] }