본문 바로가기

전체 글345

[Nest] Unit Testing and E2E Testing In this time, let's find out the testing method of Nest. I'll use the server that I made in the previous posting to test. 2020/10/02 - [Web/Etc] - [Nest] Create a simple backend server Nest provides us with a whole testing environment consisting of Jest and SuperTest. Usage $ yarn test To run tests only once. $ yarn test:watch To run tests with watch mode. $ yarn test:cov To run tests with cover.. 2020. 10. 3.
[Nest] Create a simple backend server The Nest's catchphrase is like below. A progressive Node.js framework for building efficient, reliable, and scalable server-side applications. Let's make a simple Rest server with Nest. Installation $ yarn add -g @nestjs/cli or $ npm i -g @nest/cli Globally install Nest CLI, and you can use Nest with CLI. Create a Project $ nest new Then an interactive shell is executed. Choose what you want, I .. 2020. 10. 2.
[Jest] JavaScript Code Unit Testing Jest is introduced on the homepage as "Jest is a delightful JavaScript Testing Framework with a focus on simplicity". In other words, Jest is used for testing JavaScript. As far as I know, Jest is based on Jasmine, so it is similar to Jasmine. Now, let's learn the fundamental of Jest. Installation Install Jest in your project folder. $ yarn add -D jest or $ npm i -D jest Configuration Now, add s.. 2020. 10. 1.
[Web] Testing Rest API on VS Code Sometimes we want to simply test the backend that we have made. Also, these days the editor that is the most used is definitely VS Code. So in this posting, I will show you the simple Rest API test method on VS Code. Installation All we need is just REST Client extensions. Find humao.rest-client in the extensions marketplace, and install it. Back-End And, I don't have a backend right now, so I'l.. 2020. 9. 30.
[Python] Abstract Class The abstract class is the class that has only method lists. The abstract class can't make an instance. The inherited class must implement all abstract methods. Import a Module from abc import ABCMeta ABCMeta (Abstract Base Class) forces a derived class to implement a specific method of the base class. Abstract Class Declaration class AbstractClass(metaclass=ABCMeta): pass You can declare the abs.. 2020. 9. 28.
[Mac] Configuration for Development Let's config our Mac for development. System-Wide System Preferences First, configure system preferences that you want to set. You can set the appearance of the dock, shortcut keys, gestures and etc. Homebrew This is the most essential thing. You should use this. I recommend this!!! 2020/09/23 - [OS/Mac OSX] - [Mac] Homebrew Browser - Chrome Safari is a good browser, but I use Google Chrome. Bec.. 2020. 9. 26.
[Mac] Change Colors of ls Command I'm currently using iTerm2 and the latest zsh. In the past, as I remember that if I want to change the color of the ls command, I should set in the LS_COLORS shell variables. But when I tried to set it with my new Mac in this time, it was LSCOLORS. Anyway, let's find out this. Default Value My Mac's default value was Gxfxcxdxbxegedabagacad. Oh Jeez, What is this?!! When I set it up before, it se.. 2020. 9. 25.
[Mac] Terminal Configuration with iTerm2 I've been using iTerm2 instead of the default terminal app. It has more awesome features than the default terminal app. Installation $ brew cask install iterm2 I also replaced the application in the dock. Configuration You can customize the most of things. Change all of them to your taste. Create Profiles You can many customized configuration set with profiles. Let's press ⌘, to run Preferences... 2020. 9. 24.
[Git] Config Command The config command is used to config the Git. Scope The configuration of Git has three scopes. system : /etc/gitconfig global : ~/.gitconfig local : /.git/config Usually, the configurations to be applied commonly to all projects are placed in global, and the configurations to be applied per project are placed in local. The priority is local > global > system. Usage $ git config --system $ git co.. 2020. 9. 23.