import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    projects: [
      {
        test: {
          name: 'server',
          include: ['tests/server/**/*.test.js'],
          environment: 'node',
          globals: true,
          setupFiles: ['./tests/server/setup.js']
        }
      },
      {
        test: {
          name: 'client',
          include: ['tests/client/**/*.test.js'],
          environment: 'jsdom',
          globals: true
        }
      }
    ]
  }
})
