import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    setupFiles: ['./tests/setupTestEnv.js'],
    include: ['tests/**/*.test.js'],
    coverage: {
      reporter: ['text', 'html'],
      exclude: ['migrations/**', 'uploads/**', 'scripts/**'],
    },
  },
});
