Skip to content

[10팀 윤현수][Chapter 1-1] 프레임워크 없이 SPA 만들기 #66

[10팀 윤현수][Chapter 1-1] 프레임워크 없이 SPA 만들기

[10팀 윤현수][Chapter 1-1] 프레임워크 없이 SPA 만들기 #66

Triggered via pull request September 25, 2024 08:43
@temeraire97temeraire97
opened #25
Status Failure
Total duration 23s
Artifacts

ci.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 4 warnings
Unhandled error: src/__tests__/advanced.test.js#L77
Error: 의도적인 오류입니다. ❯ HTMLInputElement.$username.addEventListener.once src/__tests__/advanced.test.js:77:15 ❯ HTMLInputElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLInputElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLInputElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLInputElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34 ❯ node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js:43:33 ❯ Object.eventWrapper node_modules/@testing-library/dom/dist/config.js:25:23 ❯ wrapEvent node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js:4:24 This error originated in "src/__tests__/advanced.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "로그인을 하다가 오류가 발생하면, 에러 바운더리에서 에러를 표시한다.". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
src/__tests__/advanced.test.js > 심화과제 테스트 > 3. 에러 바운더리 구현 > 로그인을 하다가 오류가 발생하면, 에러 바운더리에서 에러를 표시한다.: src/__tests__/advanced.test.js#L82
AssertionError: expected '<div id="root">\n<main class="bg-gray…' to contain '오류 발생!' - Expected + Received - 오류 발생! + <div id="root"> + <main class="bg-gray-100 flex items-center justify-center min-h-screen"> + <div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md"> + <h1 class="text-2xl font-bold text-center text-blue-600 mb-8">항해플러스</h1> + <form id="login-form"> + <div class="mb-4"> + <input id="username" type="text" placeholder="이름" class="w-full p-2 border rounded"> + <div id="error" class="mt-1"></div> + </div> + <div class="mb-4"> + <input type="email" placeholder="이메일 또는 전화번호" class="w-full p-2 border rounded"> + </div> + <div class="mb-6"> + <input type="password" placeholder="비밀번호" class="w-full p-2 border rounded"> + </div> + <button type="submit" class="w-full bg-blue-600 text-white p-2 rounded font-bold">로그인</button> + </form> + <div class="mt-4 text-center"> + <a href="#" class="text-blue-600 text-sm">비밀번호를 잊으셨나요?</a> + </div> + <hr class="my-6"> + <div class="text-center"> + <button class="bg-green-500 text-white px-4 py-2 rounded font-bold">새 계정 만들기</button> + </div> + </div> + </main> + </div> ❯ src/__tests__/advanced.test.js:82:39
advacned
Process completed with exit code 1.
advacned
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
advacned
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
basic
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
basic
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/