[REACT] CRA_Typescript_Jest 설정하기
cra로 프로젝트 생성 > yarn create react-app cra_ts_jest --template typescript CRA 환경에서는 Test Runner로 Jest를 사용하고 있기 때문에 Jest를 따로 설치하지 않아도 yarn test를 통해 테스트코드를 실행할 수 있다. (프로젝트 생성 직후 yarn test 명령을 하면 App.test.tsx 테스트코드가 실행되는 것을 확인할 수 있다.) > yarn test PASS가 나온다면 완료. 실행 중 ' TypeError: expect(...).toBeInTheDocument is not a function '와 같은 에러가 발생한다면, 아래와 같이 설정. // src/setuptests.ts import '@testing-library/je..
SW프로그래밍/FrontEnd 개발환경
2022. 7. 6. 09:31
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- list
- hashmap
- paging
- javascript
- Progressbar
- java
- 스프링
- webpack
- 리액트
- JSX
- ajax
- typescript
- value
- React
- hooks
- JSON
- script
- JSP
- nodeJS
- Spring
- module
- input
- Props
- date
- 함수형
- 클래스형
- datePicker
- Redux
- html
- angular
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함