macOS의 terminal에서 code 명령어로 Visual Studio Code로 실행하기 윈도우는 기본으로 동작하는 사항인데 macOS는 동작하지 않아서 팁을 남깁니다. ~/.zshenv 파일을 열어 아래의 내용을 추가하면 터미널에서 작업하던 폴더에서 code . (현재 폴더를 작업 폴더로 하기)를 실행하면 작업하는 하는 폴더와 함께 vscode를 열 수 있습니다. alias code='open -a "Visual Studio Code"' VS Code에서 mocha 실행하기 (launch.json옵션) mocha를 launch.json 파일만 만들어 주면 VS code에서 직접 실행할 수 있습니다. 아래에서 주의할 점은 unit test에서 describe()를 사용했다면 args 중 -u 다음에 tdd(Test Driven Development)가 아닌 bdd(Behavior Driven Development)로 해주어야 에러가 발생하지 않습니다. { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version".. 이전 1 다음