import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

export default defineConfig({
  plugins: [svelte()],
  server: {
    port: 9710,
    strictPort: true,
  },
  clearScreen: false,
  test: {
    include: [
      'src/**/*.test.ts',
      'sidecar/**/*.test.ts',
      ...(process.env.AGOR_EDITION === 'pro' ? ['tests/commercial/**/*.test.ts'] : []),
    ],
  },
})
