깊은바다거북
개발 공부 기록
깊은바다거북
전체 방문자
오늘
어제
  • 분류 전체보기 (219)
    • JAVA (9)
    • JavaScript (15)
    • 스파르타코딩클럽 (11)
      • [내일배움단] 웹개발 종합반 개발일지 (5)
      • [내일배움캠프] 프로젝트와 트러블 슈팅 (6)
    • SQL | NoSQL (4)
    • CS 등등 (0)
    • TIL | WIL (173)
    • 기타 에러 해결 (3)
    • 내 살 길 궁리 (4)

인기 글

최근 글

최근 댓글

태그

  • 자잘한 에러 해결
  • Trie
  • 혼자 공부하는 자바스크립트
  • 자료 구조
  • 시간 복잡도
  • 자바스크립트 기초 문법
  • 최소 힙(Min Heap)
  • Preorder Traversal(전위 순회)
  • TIT (Today I Troubleshot)
  • DFS(깊이우선탐색)
  • Backtracking(백트래킹)
  • BST(이진 탐색 트리)
  • Linked List
  • 01. 미니 프로젝트
  • Binary Tree(이진 트리)
  • 프로그래머스
  • leetcode-cli
  • Inorder Traversal(중위 순회)
  • Leetcode
  • 점화식(Recurrence Relation)
  • 트러블 슈팅 Troubleshooting
  • tree
  • 최대 힙(Max Heap)
  • 재귀 함수
  • POST / GET 요청
  • TypeScript
  • 팀 프로젝트
  • 코딩테스트 연습문제
  • BFS(너비우선탐색)
  • Til
hELLO · Designed By 정상우.
깊은바다거북

개발 공부 기록

2/13 월 (첫 TDD 코딩 문제 풀이 - Bowling Game Kata) TIL
TIL | WIL

2/13 월 (첫 TDD 코딩 문제 풀이 - Bowling Game Kata) TIL

2023. 2. 14. 23:26

(Nest.js 공부중 + TDD 공부중)

오 처음으로 TDD라는 걸 해봤다. 간단한 볼링 게임 연습문제를 테스트 코드와 함께 짜봤다.

Bowling Game Kata in JavaScript
This is the Bowling Game Kata in JavaScript. This kata was originally created by Uncle Bob Martin. Music by Chillhop: https://chillhop.com/listen Listen on Spotify: https://bit.ly/ChillhopSpotify
https://www.youtube.com/watch?v=brahHchaegc

깃헙 풀이:

Coding-Practice-with-TDD/other-sources-easy/bowling-game at main · devocean-han/Coding-Practice-with-TDD
TDD exercises via solving coding practice. Contribute to devocean-han/Coding-Practice-with-TDD development by creating an account on GitHub.
https://github.com/devocean-han/Coding-Practice-with-TDD/tree/main/other-sources-easy/bowling-game

  • 연습한 TDD 문제
  • jest가 .test.js로 끝나는 파일들을 실행해준다고. 또 E2E 테스트의 한 방법인 Cypress 도 소개(만)하고 있음.
    Test-Driven Development // Fun TDD Introduction with JavaScript
    Test-Driven Development (TDD) is a proven prevent bugs and improve the quality of your code - and it's fun! Learn the fundamentals of JavaScript testing in this beginner's tutorial. https://github.com/fireship-io/tdd-basics-project #js #webdev #tutorial 🔗 Resources Wallaby (20% discount) https://bit.ly/34KDnHP Jest https://jestjs.io/ Cypress https://www.cypress.io/ Software Testing in 100 Seconds https://youtu.be/u6QfIXgjwGQ 📚 Chapters 00:00 Why Test? 01:13 Test-Driven Development (TDD) Philosophy 02:07 Functional Testing 03:40 Non-Functional Testing 03:53 JS Interview Question 04:12 Setting up Jest 06:04 Writing your First Test 09:05 Setup & Teardown 10:29 Code Coverage Report 10:57 Cypress E2E 🤓 Install the quiz app iOS https://itunes.apple.com/us/app/fireship/id1462592372?mt=8 Android https://play.google.com/store/apps/details?id=io.fireship.quizapp 🔥 Watch more with Fireship PRO Upgrade to Fireship PRO at https://fireship.io/pro Use code lORhwXd2 for 25% off your first payment. 🎨 My Editor Settings - Atom One Dark - vscode-icons - Fira Code Font
    https://www.youtube.com/watch?v=Jv2uxzhPFl4


VS Code에서 콤마(,)나 콜론(;), 온점(.)으로 선택되는 자동완성 끄기

자동완성 툴팁이 떴을 때 그를 ‘오케이’하는 키가 대략 다섯 가지가 있는데(Enter, Tab, colon, comma, priod) 특히 ‘점(period)’을 ‘오케이’하는 뜻으로 인식하는 점이 치명적으로 불편했다. 이를 찾아보려고 키보드 단축키 메뉴에서 이것저것 검색해봤지만 콤마(,)나 점(.)으로 실행되는 조건인 단축키를 찾을 수 없던 차에, 한 블로그에서 그 해답을 찾게 되었다.

해결: Visual Studio Code의 설정>”apecpt” 검색> “Editor: Accept Suggestion On Commit Character”부분을 체크 해제

결과: 이제는 Tab과 Enter로만 자동완성의 추천 값이 선택된다. 점(.)과 콤마(,) 등으로는 선택되지 않는다.

(참고: https://velog.io/@im_chaedong/VS-Code-쉼표-세미콜론-등으로-자동-완성-기능-끄기)

  • (VS Code에서) Commit charactor란

: Commit characters are a bunch of characters which we use instead of enter when selecting an option from the autocomplete.

: 한 마디로 자동완성 기능에서 ‘선택’으로 인식되는 ‘키’이다. Eneter키가 대표적.


Uploaded by N2T

    'TIL | WIL' 카테고리의 다른 글
    • 2/15 수 (Ajax를 안 거치고 로그인이 필요한 페이지에 접근하려면 cookie밖에 답이 없다) TIL, TIT
    • 2/14 화 (표류하고 있음) TIL
    • 2/10 금 (Nest.js로 DB없는 게시판을 만들어 보다) TIL
    • 2/9 목 (Nest.js 진입, Visual Studio Code로도 첫 진입) TIL
    깊은바다거북
    깊은바다거북

    티스토리툴바