Fix code smells
Build App / Build (push) Failing after 2s

This commit is contained in:
2026-08-07 13:22:53 +02:00
parent 937b8554dd
commit f934e69c90
45 changed files with 3400 additions and 395 deletions
+10 -2
View File
@@ -1,7 +1,7 @@
import adapter from '@sveltejs/adapter-static';
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
@@ -17,5 +17,13 @@ export default defineConfig({
// `fallback` hands every unknown path to the client-side router.
adapter: adapter({ fallback: 'index.html' })
})
]
],
test: {
// The pure modules only — `$lib/statistics`, `$lib/tournaments` and the small
// helpers beside them. Everything under `ui/` or `routes/` needs a component
// harness, which this project deliberately does not have yet.
include: ['src/**/*.test.ts'],
environment: 'node'
}
});