import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    environment: 'node',
    // Integration tests recreate a shared test database; parallel files would race.
    fileParallelism: false,
    include: ['src/**/*.test.ts', 'src/**/*.itest.ts', 'scripts/tests/**/*.test.ts'],
    exclude: ['node_modules/**', 'dist/**', 'scripts/tests/fixtures/**'],
  },
});
