[8팀 조우영] [Chapter 1-2] 프레임워크 없이 SPA 만들기 #81
Annotations
9 errors and 3 warnings
src/__tests__/chapter1-2/advanced.post.test.jsx > Chapter1-2 > 심화과제 > 포스트 관리 > 비사용자 > > 포스트 작성 폼이 보이지 않는다:
src/__tests__/chapter1-2/advanced.post.test.jsx#L42
AssertionError: expected <textarea …(3)></textarea> to be null
- Expected:
null
+ Received:
<textarea
class="w-full p-2 border rounded"
id="post-content"
placeholder="무슨 생각을 하고 계신가요?"
/>
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:42:55
|
src/__tests__/chapter1-2/advanced.post.test.jsx > Chapter1-2 > 심화과제 > 포스트 관리 > 비사용자 > > 포스트에 좋아요를 클릭할 경우, 경고 메세지가 발생한다.:
src/__tests__/chapter1-2/advanced.post.test.jsx#L51
AssertionError: expected "spy" to be called with arguments: [ '로그인 후 이용해주세요' ]
Received:
Number of calls: 0
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:51:28
|
src/__tests__/chapter1-2/advanced.post.test.jsx > Chapter1-2 > 심화과제 > 포스트 관리 > 사용자 > > 포스트를 추가할 수 있다.:
src/__tests__/chapter1-2/advanced.post.test.jsx#L84
AssertionError: expected '<div class="flex items-center mb-2"><…' to be '<div class="flex items-center mb-2"><…' // Object.is equality
Expected: "<div class="flex items-center mb-2"><div><div class="font-bold">testuser</div><div class="text-gray-500 text-sm">방금 전</div></div></div><p>새로운 포스트입니다.</p><div class="mt-2 flex justify-between text-gray-500"><span class="like-button cursor-pointer">좋아요 0</span><span>댓글</span><span>공유</span></div>"
Received: "<div class="flex items-center mb-2"><div><div class="font-bold">홍길동</div><div class="text-gray-500 text-sm">5분 전</div></div></div><p>오늘 날씨가 정말 좋네요. 다들 좋은 하루 보내세요!</p><div class="mt-2 flex justify-between text-gray-500"><span class="like-button cursor-pointer">좋아요 0</span><span>댓글</span><span>공유</span></div>"
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:84:74
|
src/__tests__/chapter1-2/advanced.post.test.jsx > Chapter1-2 > 심화과제 > 포스트 관리 > 사용자 > > 포스트에 좋아요를 클릭할 경우, 좋아요가 토글된다.:
src/__tests__/chapter1-2/advanced.post.test.jsx#L98
AssertionError: expected '<span class="like-button cursor-point…' to be '<span class="like-button cursor-point…' // Object.is equality
Expected: "<span class="like-button cursor-pointer text-blue-500">좋아요 1</span>"
Received: "<span class="like-button cursor-pointer">좋아요 0</span>"
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:98:37
|
src/__tests__/chapter1-2/advanced.test.jsx > Chapter1-2 > 심화과제 > Virtual DOM과 이벤트 관리 > renderElement > > 요소의 속성만 변경되었을 때 요소를 재사용해야 한다:
src/__tests__/chapter1-2/advanced.test.jsx#L98
AssertionError: expected '<div id="test" class="old">Hello</div>' to be '<div id="test" class="new">Hello</div>' // Object.is equality
Expected: "<div id="test" class="new">Hello</div>"
Received: "<div id="test" class="old">Hello</div>"
❯ src/__tests__/chapter1-2/advanced.test.jsx:98:35
|
src/__tests__/chapter1-2/advanced.test.jsx > Chapter1-2 > 심화과제 > Virtual DOM과 이벤트 관리 > renderElement > > 함수형 컴포넌트가 업데이트될 때 필요한 부분만 렌더링해야 한다:
src/__tests__/chapter1-2/advanced.test.jsx#L138
AssertionError: expected <h1></h1> to be <h1></h1> // Object.is equality
- Expected
+ Received
<h1>
- Initial Title
+ Updated Title
</h1>
❯ src/__tests__/chapter1-2/advanced.test.jsx:138:45
|
src/__tests__/chapter1-2/advanced.test.jsx > Chapter1-2 > 심화과제 > Virtual DOM과 이벤트 관리 > renderElement > > 중첩된 함수형 컴포넌트에서 깊은 레벨의 변경사항만 업데이트해야 한다:
src/__tests__/chapter1-2/advanced.test.jsx#L167
AssertionError: expected <h1></h1> to be <h1></h1> // Object.is equality
If it should pass with deep equality, replace "toBe" with "toStrictEqual"
Expected: <h1></h1>
Received: serializes to the same string
Compared values have no visual difference.
❯ src/__tests__/chapter1-2/advanced.test.jsx:167:45
|
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
|