Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.4 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.4 KB

Code For Fun / Code For Food

Scrutinizer Code Quality Build Status codecovDocker Cloud Build Status

demonstrating problem solving skill

Start solving a new problem

npm run solve-problem [problem name]

Testing: Please never write code without tests

Install Jest

npm install -g jest

Note : Jest requires Node version 10

Run tests

  • Run test only jest or npm test
  • Run test with coverage jest --coverage or npm run coverage

Finish addressing a problem

npm run finish [problem name]

Structure

In topics folder, there are many sub folders. Each tries to solve a problem.

  • index.js: contain main logics
  • README.md
    • description of problem
    • Solutions
  • script.js: invoke main logic function in index.js and console.log to see how it works by your eyes
  • test.js: unit tests