Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.92 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.92 KB

JavaScript Code Challenges + Jest Testing

This repository contains a collection of random JavaScript code challenges with Jest test units. The code challenges cover various topics in JavaScript programming, such as arithmetic operations, string manipulation, array manipulation, and more. Each code challenge has a corresponding Jest test unit, allowing developers to test their solutions and check if they meet the desired functionality. This repository is intended for developers who want to practice their JavaScript programming skills and learn how to write test units using Jest.

TABLE OF CONTENT

  1. Installation
  2. Usage
  3. Technology
  4. More about Jest
  5. Contact

Installation

  1. clone repo to your local machine
  2. npm i

Usage

  1. Choose a code challenge from the /unsolved directory.
  2. Write your solution in the code challenge /unsolve file.
  3. Test your solution:
    • by specific code challenge file, run npm test <filename.test.js> in the terminal.
    • by the whole /unsolved file, cd into /unsolved file then run npm test in the terminal
  4. Check the output of the test to see if your solution meets the desired functionality.
  5. Repeat the process for other code challenges to improve your JavaScript programming skills and Jest test unit knowledge.

There are 10 code challenges in total. You will know that you have passed a challenge when a green flag appears.

passed

  • NOTE: The /solved directory is available to help you verify your solutions.

Technology

  1. Jest
  2. JavaScript

Contact

Let's stay connected! I welcome your feedback and compliments, so please feel free to drop me a message below.