/JS-Testing-Practice

Testing JavaScript code with Jest

Primary LanguageJavaScriptMIT LicenseMIT

JS-Testing-Practice

Testing JavaScript code with Jest

This is an image

This project is created to practice Test Driven Development(TDD) in JavaScript using Jest(JS Testing Framework). Also making use of Babel and Webpack in this project 🌌 Feel free to reach me at Twitter 👋

Technologies Used

javascript babel jest webpack npm

Includes the following features/components:

- Jest
- Babel Loader
- Webpack

Usage

Run Dev Server (Port 5500)

```
npm install

```

```
npm test

```

Links to content that helped me with this project

  1. The Odin Project

  2. YouTube

  3. Jest

  4. Others

Notes/Remarks

calculator works with 2 numbers for now.

caesarCipher works for letters a-z, A-Z, converts it to lowercase, ignores punctuation and numbers.

analyzeArray is divided into helper functions that return values like average, min, max, length. Values from these helper functions are used in the returnedObject method to return an Object and we run our tests against the Object returned by this method. It is assumed that inputArray contains only numbers.

Future Changes/Fixes

Quote

“Keep your eyes on the stars, and your feet on the ground.”
— Theodore Roosevelt

🌃 🌏 🪲