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.
- clone repo to your local machine
npm i
- Choose a code challenge from the /unsolved directory.
- Write your solution in the code challenge /unsolve file.
- 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 runnpm test
in the terminal
- by specific code challenge file, run
- Check the output of the test to see if your solution meets the desired functionality.
- 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.
- NOTE: The /solved directory is available to help you verify your solutions.
- Jest
- JavaScript
Let's stay connected! I welcome your feedback and compliments, so please feel free to drop me a message below.