[cs frontend] 로그인 페이지 에러 로그 변경
This commit is contained in:
@@ -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 />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user