Skip to content

slushyash/coding-challenges

Repository files navigation

Sup

  1. Fork this repository
  2. Clone this repository git clone https://github.com/{YOUR_USERNAME}/coding-challenges.git
  3. Make sure you're on Node v13.
  4. Run npm install in this repository
  5. Download VSCode
  6. Install Prettier for VSCode https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
  7. Implement challenges/0-hello/hello.js
  8. Run npm test --challenge=hello
  9. Make sure the tests pass!
  10. git remote add upstream {this_repo} to pull from upstream

Useful Tips For Testing

  1. If you ever want to mess around with your function outside of this environment, just copy and paste the function you wrote into RunJS.
  2. A better way to run tests for a single function: npx jest challenges/5-arraycardio -t "#lastElement"
  3. Generic form of above: npx jest challenges/{CHALLENGE_FOLDER} -t "#{FUNCTION_NAME}"
  4. If you want to also have the tests auto-reload on save, do the above command but add --watch

Getting new Exercises

  1. Make sure you're on your fork and have upstream and origin configured to point to the right places. upstream should point to slushyash/coding-challenges, and origin should point to your-username/coding-challenges.
  2. Run git pull upstream/master --rebase
  3. If you run into a conflict, ask for help.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors