From 7a12d269bca44389bfdf63e8bed0458b121db4c2 Mon Sep 17 00:00:00 2001 From: jangwoong Date: Fri, 10 Jul 2026 10:58:16 +0900 Subject: [PATCH] =?UTF-8?q?[cs=20frontend]=20=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cs/playwright-report/index.html | 2 +- apps/cs/playwright.config.ts | 2 ++ apps/cs/test-results/.last-run.json | 8 ++++++++ apps/cs/tests/unit/login-page.test.tsx | 7 ++++--- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 apps/cs/test-results/.last-run.json diff --git a/apps/cs/playwright-report/index.html b/apps/cs/playwright-report/index.html index 1ce78233b..a29cda420 100644 --- a/apps/cs/playwright-report/index.html +++ b/apps/cs/playwright-report/index.html @@ -87,4 +87,4 @@ Error generating stack: `+l.message+`
- \ No newline at end of file + \ No newline at end of file diff --git a/apps/cs/playwright.config.ts b/apps/cs/playwright.config.ts index 02f9a249b..a7b591069 100644 --- a/apps/cs/playwright.config.ts +++ b/apps/cs/playwright.config.ts @@ -6,6 +6,8 @@ import { defineConfig, devices } from "@playwright/test"; */ export default defineConfig({ testDir: "./tests", + /* Vitest 단위 테스트 파일들을 Playwright 테스트 대상에서 제외 */ + testIgnore: "**/unit/**", /* 하나의 테스트 파일 내에서 병렬 실행 금지 및 직렬 실행으로 세션 상태 격리 보장 */ fullyParallel: false, /* Redis 및 PostgreSQL 공유 자원의 세션 정렬을 위해 워커를 1개로 제한 */ diff --git a/apps/cs/test-results/.last-run.json b/apps/cs/test-results/.last-run.json new file mode 100644 index 000000000..00a2a78fa --- /dev/null +++ b/apps/cs/test-results/.last-run.json @@ -0,0 +1,8 @@ +{ + "status": "failed", + "failedTests": [ + "7cf08488f825bec651e1-31e606ad69300bb6fcd0", + "7cf08488f825bec651e1-9eda3d84416d28db938c", + "7cf08488f825bec651e1-bbbe7f77241a3995edcb" + ] +} \ No newline at end of file diff --git a/apps/cs/tests/unit/login-page.test.tsx b/apps/cs/tests/unit/login-page.test.tsx index 3970a0e79..23e16deee 100644 --- a/apps/cs/tests/unit/login-page.test.tsx +++ b/apps/cs/tests/unit/login-page.test.tsx @@ -34,12 +34,13 @@ describe("LoginPage 단위 테스트 (Vitest)", () => { beforeAll(() => { // window.location.href 변경 감지를 위해 window.location 모킹 - // @ts-ignore + // @ts-expect-error delete window.location; - window.location = { ...originalLocation, href: "" } as any; + window.location = { ...originalLocation, href: "" } as never; }); afterAll(() => { + // @ts-expect-error window.location = originalLocation; }); @@ -104,7 +105,7 @@ describe("LoginPage 단위 테스트 (Vitest)", () => { it("3. 로그인 성공 시 /dashboard 로 리다이렉트되는지 검증", async () => { // authService.login 성공 모크 구현 - vi.mocked(authService.login).mockResolvedValueOnce(undefined as any); + vi.mocked(authService.login).mockResolvedValueOnce(undefined as never); render();