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