[9팀 김정태] [Chapter 1-2] 프레임워크 없이 SPA 만들기 #44
Annotations
10 errors and 1 warning
advanced-test:
src/__tests__/chapter1-1/advanced.test.js#L81
AssertionError: expected null to not be falsy
- Expected:
false
+ Received:
null
❯ src/__tests__/chapter1-1/advanced.test.js:81:57
|
advanced-test:
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
|
advanced-test:
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
|
advanced-test:
src/__tests__/chapter1-2/advanced.post.test.jsx#L84
AssertionError: expected '<div class="flex items-center mb-2" c…' 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" classname="flex items-center mb-2"><div><div class="font-bold" classname="font-bold">홍길동</div><div class="text-gray-500 text-sm" classname="text-gray-500 text-sm">5분 전</div></div></div><p>오늘 날씨가 정말 좋네요. 다들 좋은 하루 보내세요!</p><div class="mt-2 flex justify-between text-gray-500" classname="mt-2 flex justify-between text-gray-500"><span class="like-button cursor-pointer" classname="like-button cursor-pointer">좋아요 0</span><span>댓글</span><span>공유</span></div>"
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:84:74
|
advanced-test:
src/__tests__/chapter1-2/advanced.post.test.jsx#L94
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">좋아요 0</span>"
Received: "<span class="like-button cursor-pointer" classname="like-button cursor-pointer">좋아요 0</span>"
❯ src/__tests__/chapter1-2/advanced.post.test.jsx:94:37
|
advanced-test:
src/__tests__/chapter1-2/advanced.test.jsx#L45
AssertionError: expected '<div><h1>Title</h1><p>Paragraph 1</p>…' to be '<div><h1>Updated Title</h1><p>Paragra…' // Object.is equality
Expected: "<div><h1>Updated Title</h1><p>Paragraph 1</p></div>"
Received: "<div><h1>Title</h1><p>Paragraph 1</p></div>"
❯ src/__tests__/chapter1-2/advanced.test.jsx:45:35
|
advanced-test:
src/__tests__/chapter1-2/advanced.test.jsx#L75
AssertionError: expected 'Item 2' to be 'New Item' // Object.is equality
Expected: "New Item"
Received: "Item 2"
❯ src/__tests__/chapter1-2/advanced.test.jsx:75:70
|
advanced-test:
src/__tests__/chapter1-2/advanced.test.jsx#L98
AssertionError: expected '<div id="test" class="old" classname=…' 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" classname="new">Hello</div>"
❯ src/__tests__/chapter1-2/advanced.test.jsx:98:35
|
advanced-test:
src/__tests__/chapter1-2/advanced.test.jsx#L140
AssertionError: expected 'Initial Title' to be 'Updated Title' // Object.is equality
Expected: "Updated Title"
Received: "Initial Title"
❯ src/__tests__/chapter1-2/advanced.test.jsx:140:57
|
advanced-test:
src/__tests__/chapter1-2/advanced.test.jsx#L170
AssertionError: expected 'Child Text' to be 'Updated Child Text' // Object.is equality
Expected: "Updated Child Text"
Received: "Child Text"
❯ src/__tests__/chapter1-2/advanced.test.jsx:170:56
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading