import { defineConfig } from 'vitest/config';
import path from 'path';

export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    include: [
      'tests/smoke/electron-init.smoke.test.ts',
      'tests/smoke/browser-mode-toggle.smoke.test.ts',
    ],
    testTimeout: 10000,
    hookTimeout: 10000,
    teardownTimeout: 10000,
    isolate: true,
    pool: 'forks',
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, '.'),
      '@/packages': path.resolve(__dirname, './packages'),
      '@/apps': path.resolve(__dirname, './apps'),
    },
  },
});