In this exercise, I will write a few practical tests for JavaScript functions using the Jest library.
- Javascript
- npm
- ES6
- Jest Library
-
Task 1:
stringLength(string)
function -
Task 2:
reverseStrings(string)
function -
Task 3:
class Calculator
object -
Task 4:
capitalize(string)
function, Usage of TDD
- Clone the repository:
git clone https://github.com/Bateyjosue/Testing-practice.git
Note: Make sure you have nodejs installed and npm as wel. then, run
2. npm install
to install the dependencies
- After install project dependencies you can now run the following command
nmp test
ornpm run test
to run the tests.
👤 Josh Batey
- GitHub: @Bateyjosue
- Twitter: @JosueBatey
- LinkedIn: Josue (Josh) Batey
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!