From 849ac0a02db4dd91d388672a75b66af460603ecb Mon Sep 17 00:00:00 2001 From: danpung2 Date: Tue, 13 Jan 2026 18:48:05 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix(ci):=20ci=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/auth/controller/AuthControllerTest.kt | 4 ++++ apps/api/src/chat/chat.service.spec.ts | 6 ++++++ apps/api/src/todo/todo.service.spec.ts | 18 ++++++++++++------ apps/web/src/app/calendar/page.tsx | 1 + 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/apps/api-springboot/src/test/kotlin/com/flowly/api/auth/controller/AuthControllerTest.kt b/apps/api-springboot/src/test/kotlin/com/flowly/api/auth/controller/AuthControllerTest.kt index adc0ea6..cbefecf 100644 --- a/apps/api-springboot/src/test/kotlin/com/flowly/api/auth/controller/AuthControllerTest.kt +++ b/apps/api-springboot/src/test/kotlin/com/flowly/api/auth/controller/AuthControllerTest.kt @@ -79,6 +79,7 @@ class AuthControllerTest { id = 1L, email = request.email, nickname = request.nickname, + workspaceId = "test-workspace-id", createdAt = "2025-12-09T00:00:00Z", ), tokens = @@ -145,6 +146,7 @@ class AuthControllerTest { id = 1L, email = request.email, nickname = "Test User", + workspaceId = "test-workspace-id", createdAt = "2025-12-09T00:00:00Z", ), tokens = @@ -207,6 +209,7 @@ class AuthControllerTest { id = 1L, email = "test@example.com", nickname = "Test User", + workspaceId = "test-workspace-id", createdAt = "2025-12-09T00:00:00Z", ), tokens = @@ -318,6 +321,7 @@ class AuthControllerTest { id = 1L, email = "test@example.com", nickname = "Test User", + workspaceId = "test-workspace-id", createdAt = "2025-12-09T00:00:00Z", ) diff --git a/apps/api/src/chat/chat.service.spec.ts b/apps/api/src/chat/chat.service.spec.ts index a2dac8f..6734500 100644 --- a/apps/api/src/chat/chat.service.spec.ts +++ b/apps/api/src/chat/chat.service.spec.ts @@ -63,6 +63,12 @@ describe('ChatService', () => { provide: CACHE_MANAGER, useValue: mockCacheManager, }, + { + provide: 'REDIS_PUBLISHER_CLIENT', + useValue: { + publish: jest.fn(), + }, + }, ], }).compile(); diff --git a/apps/api/src/todo/todo.service.spec.ts b/apps/api/src/todo/todo.service.spec.ts index bf4379f..4fbe6b8 100644 --- a/apps/api/src/todo/todo.service.spec.ts +++ b/apps/api/src/todo/todo.service.spec.ts @@ -8,7 +8,7 @@ import { Todo } from './todo.entity'; import { User } from '../user/user.entity'; import { createMockRepository } from '../test-utils/mock-repository'; import { createMockCacheManager } from '../test/helpers/cache-mock.helper'; -import {Friendship} from "../friend/friendship.entity"; +import { Friendship } from "../friend/friendship.entity"; describe('TodoService', () => { let service: TodoService; @@ -77,6 +77,9 @@ describe('TodoService', () => { ownerId: mockUser.id, visibility: 'PRIVATE', done: false, + status: 'TODO', + startDate: undefined, + endDate: undefined, }); expect(repository.save).toHaveBeenCalledWith(expectedTodo); expect(result).toEqual(expectedTodo); @@ -96,6 +99,9 @@ describe('TodoService', () => { ownerId: mockUser.id, visibility: 'FRIENDS', done: false, + status: 'TODO', + startDate: undefined, + endDate: undefined, }); expect(result).toEqual(expectedTodo); }); @@ -222,11 +228,11 @@ describe('TodoService', () => { expect(mockQueryBuilder.leftJoinAndSelect).toHaveBeenCalledWith('todo.owner', 'owner'); expect(mockQueryBuilder.where).toHaveBeenCalledWith('todo.visibility = :visibility', { visibility: 'FRIENDS' }); expect(mockQueryBuilder.innerJoin).toHaveBeenCalledWith( - Friendship, - 'friendship', - '(friendship.requesterId = :userId AND friendship.addresseeId = todo.ownerId AND friendship.status = :status) OR ' + - '(friendship.addresseeId = :userId AND friendship.requesterId = todo.ownerId AND friendship.status = :status)', - { userId, status: 'ACCEPTED' } + Friendship, + 'friendship', + '(friendship.requesterId = :userId AND friendship.addresseeId = todo.ownerId AND friendship.status = :status) OR ' + + '(friendship.addresseeId = :userId AND friendship.requesterId = todo.ownerId AND friendship.status = :status)', + { userId, status: 'ACCEPTED' } ); expect(mockQueryBuilder.orderBy).toHaveBeenCalledWith('todo.createdAt', 'DESC'); expect(result).toEqual(friendsTodos); diff --git a/apps/web/src/app/calendar/page.tsx b/apps/web/src/app/calendar/page.tsx index 1617026..56fb5d1 100644 --- a/apps/web/src/app/calendar/page.tsx +++ b/apps/web/src/app/calendar/page.tsx @@ -193,6 +193,7 @@ const CalendarPage = () => { + {/* @ts-ignore */}