aboutsummaryrefslogtreecommitdiffstats
path: root/webapp/vite.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/vite.config.ts')
-rw-r--r--webapp/vite.config.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts
new file mode 100644
index 0000000..0c5f0f7
--- /dev/null
+++ b/webapp/vite.config.ts
@@ -0,0 +1,21 @@
+import tailwindcss from '@tailwindcss/vite';
+import { defineConfig } from 'vitest/config';
+import { sveltekit } from '@sveltejs/kit/vite';
+
+export default defineConfig({
+ plugins: [tailwindcss(), sveltekit()],
+ test: {
+ expect: { requireAssertions: true },
+ projects: [
+ {
+ extends: './vite.config.ts',
+ test: {
+ name: 'server',
+ environment: 'node',
+ include: ['src/**/*.{test,spec}.{js,ts}'],
+ exclude: ['src/**/*.svelte.{test,spec}.{js,ts}'],
+ },
+ },
+ ],
+ },
+});