feat: first
Some checks failed
CI / test (20) (push) Failing after 16s
CI / test (22) (push) Failing after 20s
CI / security (push) Failing after 2m8s
CI / build (push) Has been skipped
Deploy / build-and-deploy (push) Failing after 43s
Deploy / docker-build (push) Failing after 9s
Gitea CI / test (push) Failing after 13s
Gitea CI / docker-build (push) Has been skipped

This commit is contained in:
2025-08-13 20:09:04 +02:00
commit 82394e9a94
45 changed files with 2185 additions and 0 deletions

37
vite.config.ts Normal file
View File

@@ -0,0 +1,37 @@
import devtoolsJson from 'vite-plugin-devtools-json';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit(), devtoolsJson()],
test: {
expect: { requireAssertions: true },
projects: [
{
extends: './vite.config.ts',
test: {
name: 'client',
environment: 'browser',
browser: {
enabled: true,
provider: 'playwright',
instances: [{ browser: 'chromium' }]
},
include: ['src/**/*.svelte.{test,spec}.{js,ts}'],
exclude: ['src/lib/server/**'],
setupFiles: ['./vitest-setup-client.ts']
}
},
{
extends: './vite.config.ts',
test: {
name: 'server',
environment: 'node',
include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/**/*.svelte.{test,spec}.{js,ts}']
}
}
]
}
});