import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    deps: {
      interopDefault: true,
    },
    env: {
      HIYA_API_KEY: 'test-api-key',
      HIYA_API_URL: 'https://api.hiya.com/v1',
    },
  },
  optimizeDeps: {
    include: ['ws'],
  },
  ssr: {
    noExternal: ['ws'],
  },
});
