import { defineConfig } from 'vitest/config' import tsConfigPaths from 'vite-tsconfig-paths' // Excludes the TanStack Start plugin: its SSR/router codegen isn't needed for unit tests. export default defineConfig({ plugins: [tsConfigPaths({ projects: ['./tsconfig.json'] })], test: { environment: 'node', include: ['src/**/*.test.{ts,tsx}'], restoreMocks: true, }, })