import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; // 테스트는 DOM을 흉내 내되 오디오 장치를 열지 않는다. 실제 브라우저 검증은 // 별도의 Playwright 경로에서 수행하여 순수 로직과 장치 의존 실패를 구분한다. export default defineConfig({ plugins: [react()], test: { environment: "jsdom", setupFiles: ["./tests/setup.ts"], include: ["tests/**/*.test.{ts,tsx}"], restoreMocks: true, }, });