본문 바로가기

전체 글11

E2E 테스트 라이브러리 Cypress https://www.cypress.io/ JavaScript End to End Testing Framework Fast, easy and reliable testing for anything that runs in a browser. Install Cypress in seconds and take the pain out of front-end testing. www.cypress.io 소개페이지 문구 처럼 빠르고 쉽게 브라우저에서 동작하는 모든것을 테스트 할 수 있게 해준다 npm install cypress 로 간단설치 2022. 3. 1.
jsx 파일 import 시 파일명의 확장자의 유무는 무슨 차이인가? 프론트 엔드 개발시 export default ComponentName; 으로 모듈화 하고 가져다 쓰려고 하면 import ComponentName from '../component'; import ComponentName from '../component.jsx'; 둘의 차이가 뭐길래 .jsx는 모듈을 찾을 수 없다 하는 것인가? ( js 확장자는 되는데??) https://stackoverflow.com/questions/34678314/webpack-cant-find-module-if-file-named-jsx webpack can't find module if file named jsx As I write webpack.config.js like this module.exports = { entr.. 2022. 2. 24.
TDD (Test-Driven Development) TDD의 장점 테스트 코드를 작성하기 위해 요구사항에 대한 분석, 이해가 이루어 지면서 사용자 입장에서 의 코드 작성이 가능해진다. 내부 기능 보다 인터페이스 위주의 개발이 가능하면서 코드간 디커플링(decoupling) 구현 가능 협업 또는 코드 리뷰 시 테스트 코드가 개발 명세서와 같은 기능을 하여 소스의 이해도와 소통의 질을 높힌다. 2022. 2. 4.