aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
blob: c8915e129782d23287bab21eccced8e0afb7f8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vitest/config'

export default defineConfig({
  plugins: [sveltekit()],
  test: {
    include: ['tests/**/*.{test,spec}.ts', '**/*.{test,spec}.ts'],
    exclude: ['node_modules', '.svelte-kit', 'dist', 'build'],
    environment: 'node'
  },
  server: {
    port: 5173,
    strictPort: false
  },
  preview: {
    port: 4173
  }
})