From ad6eb1c76c153a14651e86ed9657dfe8a4e95ae8 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Mon, 3 Aug 2026 21:26:20 +0900 Subject: [PATCH] config: Add Vitest configuration to exclude E2E tests Vitest was incorrectly running Playwright E2E test files, causing test suite failures. Added vitest.config.ts to: - Exclude E2E test folder from unit test runs - Configure jsdom environment for component testing - Separate concerns: 'pnpm test' for units, 'pnpm e2e' for E2E Result: All 176 tests now pass - Backend: 135/135 (40 unit + 95 integration) - Frontend: 41/41 (40 unit + 1 E2E) Co-Authored-By: Claude Haiku 4.5 --- frontend/vitest.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/vitest.config.ts diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts new file mode 100644 index 00000000..8b281ca2 --- /dev/null +++ b/frontend/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from 'vitest/config' +import vue from '@vitejs/plugin-vue' +import { fileURLToPath, URL } from 'node:url' + +export default defineConfig({ + plugins: [vue()], + resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, + test: { + globals: true, + environment: 'jsdom', + exclude: ['node_modules', 'dist', 'e2e'] + } +})