1주차 : 프레임워크 없이 SPA 만들기 [이주영] #18
Annotations
5 errors and 3 warnings
src/__tests__/advanced.hashRouter.test.js > 심화과제 > 해시 라우터 테스트 > 1. 라우팅 구현 > "/login" 경로로 접근하면 로그인 페이지가 렌더링된다:
src/__tests__/advanced.hashRouter.test.js#L35
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/__tests__/advanced.hashRouter.test.js:35:63
|
src/__tests__/advanced.hashRouter.test.js > 심화과제 > 해시 라우터 테스트 > 1. 라우팅 구현 > 로그인이 되지 않은 상태에서 "/profile" 경로로 접근하면, 로그인 페이지로 리다이렉션 된다.:
src/__tests__/advanced.hashRouter.test.js#L47
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/__tests__/advanced.hashRouter.test.js:47:63
|
src/__tests__/advanced.hashRouter.test.js > 심화과제 > 해시 라우터 테스트 > 1. 라우팅 구현 > 존재하지 않는 경로로 접근하면 404 페이지가 렌더링된다:
src/__tests__/advanced.hashRouter.test.js#L54
AssertionError: expected '<div id="root">\n <div class="bg-gra…' to contain '404'
- Expected
+ Received
- 404
+ <div id="root">
+ <div class="bg-gray-100 min-h-screen flex justify-center">
+ <div class="max-w-md w-full">
+
+
+ <header class="bg-blue-600 text-white p-4 sticky top-0">
+ <h1 class="text-2xl font-bold">항해플러스</h1>
+ </header>
+
+ <nav class="bg-white shadow-md p-2 sticky top-14">
+ <ul class="flex justify-around">
+ <li><a href="/" class="text-blue-600 font-bold">홈</a></li>
+
+ <li><a href="/login" class="text-gray-600" id="login">로그인</a></li>
+ </ul>
+ </nav>
+
+
+ <main class="p-4">
+ <div class="mb-4 bg-white rounded-lg shadow p-4">
+ <textarea class="w-full p-2 border rounded" placeholder="무슨 생각을 하고 계신가요?"></textarea>
+ <button class="mt-2 bg-blue-600 text-white px-4 py-2 rounded">게시</button>
+ </div>
+
+ <div class="space-y-4">
+
+ <div class="bg-white rounded-lg shadow p-4">
+ <div class="flex items-center mb-2">
+ <img src="https://via.placeholder.com/40" alt="프로필" class="rounded-full mr-2">
+ <div>
+ <p class="font-bold">홍길동</p>
+ <p class="text-sm text-gray-500">5분 전</p>
+ </div>
+ </div>
+ <p>오늘 날씨가 정말 좋네요. 다들 좋은 하루 보내세요!</p>
+ <div class="mt-2 flex justify-between text-gray-500">
+ <button>좋아요</button>
+ <button>댓글</button>
+ <button>공유</button>
+ </div>
+ </div>
+
+ <div class="bg-white rounded-lg shadow p-4">
+ <div class="flex items-center mb-2">
+ <img src="https://via.placeholder.com/40" alt="프로필" class="rounded-full mr-2">
+ <div>
+ <p class="font-bold">김철수</p>
+ <p class="text-sm text-gray-500">15분 전</p>
+ </div>
+ </div>
+ <p>새로운 프로젝트를 시작했어요. 열심히 코딩 중입니다!</p>
+ <div class="mt-2 flex justify-between text-gray-500">
+ <button>좋아요</button>
+ <button>댓글</button>
+ <button>공유</button>
+ </div>
+ </div>
+
+ <div class="bg-white rounded-lg shadow p-4">
+ <div class="flex items-center mb-2">
+ <img src="https://via.placeholder.com/40" alt="프로필" class="rounded-full mr-2">
+ <div>
+ <p class="font-bold">이영희</p>
+ <p class="text-sm text-gray-500">30분 전</p>
+ </div>
+ </div>
+ <p>오늘 점심 메뉴 추천 받습니다. 뭐가 좋을까요?</p>
+ <div class="mt-2 flex justify-between text-gray-500">
+ <button>좋아요</button>
+ <button>댓글</button>
+ <button>공유</button>
+ </div>
+ </div>
+
+ <div class="bg-white rounded-lg shadow p-4">
+ <div class="flex items-center mb-2">
+ <img src="https://via.placeholder.com/40" alt="프로필" class="rounded-full mr-2">
+ <div>
+ <p class="font-bold">박민수</p>
+ <p class="text-sm text-gray-500">1시간 전</p>
+ </div>
+ </div>
+ <p>주말에 등산 가실 분 계신가요? 함께 가요!</p>
+ <div class="mt-2 flex justify-between text-gray-500">
+ <button>좋아요</button>
+ <button>댓글</button>
+ <button>공유</button>
+ </div>
+ </div>
+
+ <div class="bg-white rounded-lg shadow p-4">
+ <div class="flex items-center mb-2">
+ <img src="https://via.placeholder.com/40" alt="프로필" class="rounded-full mr-2">
+ <div>
+ <p class="font-bold">정수연</p>
+ <p class="text-sm text-gray-500">2시간 전</p>
+ </div>
+ </div>
+ <p>새로 나온 영화 재미있대요. 같이 보러 갈 사람?</p>
+ <div class="mt-2 flex justify-between text-gray-500">
+ <button>좋아요</button>
+ <button>댓글</button>
+
|
advacned
Process completed with exit code 1.
|
e2e
Process completed with exit code 1.
|
advacned
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
basic
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
e2e
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|