Skip to content

Conversation

@CodeVac513
Copy link
Collaborator

@CodeVac513 CodeVac513 commented Jan 16, 2025

🔨 테스크

프레임워크를 어떻게 대체할 수 있을까?

  • 기존에는 Nest 혹은 TypeORM에서 DI, DB DDL 등 여러 편의성을 제공했습니다.
  • DB DDL 작성은 constructor에서 하드 코딩하여 일단은 해결했습니다.
  • DI는 Tsyringe를 사용하여 처리할 예정입니다.

📋 작업 내용

  • iordies-mock 의존성 추가 및 테스트 환경에서는 ioredis-mock을 사용하도록 수정
  • better-sqlite3 의존성 추가
  • feedRepository 로그 메시지에 SQLite 추가
  • sqlite-access.ts 작성

📷 스크린 샷

  • 일단 클로드에게 간단한 test 코드 작성을 부탁해서 세팅이 제대로 동작하는지 확인했습니다.
    image

@CodeVac513 CodeVac513 added 🔧 Chore 세팅 관련 ✅ Test 테스트 관련 (storybook, vitest, jest 등) labels Jan 16, 2025
@CodeVac513 CodeVac513 self-assigned this Jan 16, 2025
Copy link
Member

@asn6878 asn6878 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

직접 redis 모킹해야 하는줄 알았는데, redisMock 이 있군요!

고생하셨습니다!! 👍

Copy link
Member

@Jo-Minseok Jo-Minseok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 테이블 자료형 변환 부탁드려용

Copy link
Member

@Jo-Minseok Jo-Minseok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 실제로 동작 확인 되셨으면 merge 부탁드려요!

@CodeVac513 CodeVac513 merged commit 0f2719e into main Jan 18, 2025
1 check passed
@CodeVac513 CodeVac513 deleted the test/test-for-sqlite3-access branch January 18, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 Chore 세팅 관련 ✅ Test 테스트 관련 (storybook, vitest, jest 등)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants