aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.ts
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-06-22 11:25:31 +0200
committerrtkay123 <dev@kanjala.com>2025-06-22 11:25:31 +0200
commit333bcef4a58d16eb5a8940e9d08d32caa9db4480 (patch)
tree1e81da403c189af6d0e5b800d2ccfb105c209792 /vite.config.ts
downloadkanjala.com-master.tar.bz2
kanjala.com-master.zip
initial commitHEADmaster
Diffstat (limited to 'vite.config.ts')
-rw-r--r--vite.config.ts36
1 files changed, 36 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 0000000..5c27436
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,36 @@
+import tailwindcss from '@tailwindcss/vite';
+import devtoolsJson from 'vite-plugin-devtools-json';
+import { sveltekit } from '@sveltejs/kit/vite';
+import { defineConfig } from 'vite';
+
+export default defineConfig({
+ plugins: [tailwindcss(), sveltekit(), devtoolsJson()],
+ test: {
+ 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}']
+ }
+ }
+ ]
+ }
+});