From a8acb7761a510b1c427418bf37eb0f1968c89776 Mon Sep 17 00:00:00 2001 From: morisummer Date: Wed, 2 Jul 2025 23:46:26 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Update=20test=20configurations?= =?UTF-8?q?=20to=20ignore=20test=20files=20and=20include=20Vitest=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + frontend/package.json | 4 ++-- frontend/tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 72d64be..3b5c5db 100644 --- a/.gitignore +++ b/.gitignore @@ -72,6 +72,7 @@ coverage.xml .hypothesis/ .pytest_cache/ cover/ +coverage # Translations *.mo diff --git a/frontend/package.json b/frontend/package.json index 1210319..0213bdb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -8,8 +8,8 @@ "build": "vite build", "preview": "vite preview", "prepare": "svelte-kit sync || echo ''", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "check": "svelte-kit sync && svelte-check --no-tsconfig --ignore \"**.test.ts\"", + "check:watch": "svelte-kit sync && svelte-check --no-tsconfig --ignore \"**.test.ts\" --watch", "format": "prettier --write .", "lint": "prettier --check . && eslint .", "test": "vitest", diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 0b2d886..8f11c68 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -9,7 +9,8 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "moduleResolution": "bundler" + "moduleResolution": "bundler", + "types": ["vitest/globals"], } // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files