JS-Testing-Practice
Testing JavaScript code with Jest
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
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
-
The Odin Project
-
YouTube
-
Jest
-
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
π π πͺ²