import { defineConfig, loadEnv } from 'vite';

export default defineConfig(({ mode }) => ({
  test: {
    environment: 'node',
    testTimeout: 10000,
    // Load all vars from .env.local (empty prefix = no filter)
    env: loadEnv(mode, process.cwd(), ''),
  },
}));
