2019/09/27 TIL

코드깎는 노인·2019년 9월 27일
0

TIL

목록 보기
5/23

커밋메세지를 잘못 작성했을 시 수정하는법

git commit --amend -m "commit message"
git push origin branchname -f 

regeneratorRuntime is not defined lifecycle componentdidmount과 같은 에러가 발생하였다
설치 후
의존성에 다음을 추가 후

"@babel/core": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-typescript": "^7.6.0",

루트에 .babelrc이름의 다음과 같은 파일 생성

{
  "presets": ["@babel/preset-typescript"],
  "plugins": ["@babel/plugin-transform-runtime"]
}

fireEvent - testing library에서 event테스트에 사용
getAllByRole - testing library에서 태그에 role을 주고 불러올 수 있다.

babel-polyfill,babel-plugin-runtime 설명
구글 키워드- babel/plugin-transform-runtime 런타임

profile
내가 볼려고 만든 블로그

0개의 댓글