inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

따라하며 배우는 리액트 테스트 [2023.11 업데이트]

카운터 숫자 구현하기

이번 강의에 보이는 terminal 내용이랑 제 컴퓨터 터미널 내용이랑 다릅니다.

239

hojun00

작성한 질문수 1

0

카운터 숫자 구현하기

 

이 강의에 나오는 터미널 내용이랑 제 컴퓨터 터미널 내용이랑 다릅니다. 아마도 package.json 부분에 "test": "react-scripts test",

이 부분을 수정해야 하는건가요? 강의 내용중에 없었던 것 같아서 질문합니다. 

 

 FAIL  src/App.test.js

  ● Test suite failed to run

 

    Cannot find module 'core-js-pure/features/get-iterator' from 'node_modules/@babel/runtime-corejs3/core-js/get-iterator.js'

 

    Require stack:

      node_modules/@babel/runtime-corejs3/core-js/get-iterator.js

      node_modules/aria-query/lib/rolesMap.js

      node_modules/aria-query/lib/index.js

      node_modules/@testing-library/jest-dom/dist/to-be-checked.js

      node_modules/@testing-library/jest-dom/dist/matchers.js

      node_modules/@testing-library/jest-dom/dist/extend-expect.js

      node_modules/@testing-library/jest-dom/dist/index.js

      src/setupTests.js

 

      at Resolver.resolveModule (node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:306:11)

      at Object.<anonymous> (node_modules/@babel/runtime-corejs3/core-js/get-iterator.js:1:107)

 

Test Suites: 1 failed, 1 total

Tests:       0 total

Snapshots:   0 total

Time:        0.358 s

Ran all test suites.

 

Watch Usage: Press w to show more.

react React-Context 웹앱 jest

답변 1

0

John Ahn

안녕하세요 !!! 

어떨때 이런 에러가 나오는지 잘 모르겠어서  새로운 글에 저장소 올려주시면 직접해보겠습니다 !!! 

제공해주신 코드를 vscode에서 켜도 eslint가 안됩니다.

0

296

2

ERROR

0

217

1

테스트 시간을 단축할 수 있는 방법에 대하여 문의드립니다.

0

370

1

useState 배열값 변경의 경우 테스트 멈춤

0

424

1

test was not wrapped in act관련 질문

0

300

2

안녕하세요! 로딩 상태 테스트에 관련된 질문입니다.

0

400

1

강의 관련 내용 github 업로드 질문

0

312

1

이미지가 안보인다 하셔서 다시 질문드립니다.

0

420

2

Test Fail이 발생합니다 ㅠㅠ

0

364

1

스타일 컴포넌트 테스트 방법

0

441

1

msw 에러

0

646

1

toHaveTextContent 에러

0

455

1

msw안돼는사람

0

588

1

This could be because the text is broken up by multiple elements. 에러

0

1723

2

Type.test.js파일에 궁금한점이 생겼습니다

0

354

1

28강 수강 중 JSX 작성 방법에 대해 궁금해져서 질문 남깁니다!

0

406

1

toHaveTextContent 에서 에러가 자꾸 나는데 아무리 찾아도 잘 모르겠습니다.

0

618

2

aria-*

0

451

1

This XML file does not appear to have any style information associated with it. The document tree is shown below. 에러

1

14169

1

컴포넌트 props내려줄때 코드는 어떻게 해야하나요

0

252

0

es6 jest 미지원 오류 문의

0

866

1

test 여러 개 실행 - fail 발생

0

294

1

useMemo

0

286

1

axios 1.1.2 버전 issue ( SyntaxError: Cannot use import statement outside a module)

4

2237

5