[cs frontend] 로그인 페이지 에러 로그 변경

This commit is contained in:
2026-07-10 10:58:16 +09:00
parent f5bae39fba
commit 7a12d269bc
4 changed files with 15 additions and 4 deletions
+4 -3
View File
@@ -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(<LoginPage />);