Testing with JEST.
Explore the docs »
Report Bug
·
Request Feature
Writing tests for the following functions, and then make the tests pass!
capitalize(string)
takes a string and returns that string with the first character capitalized.reverseString(string)
takes a string and returns it reversed.- A
calculator
object that contains the basic operations:add, subtract, divide,
andmultiply
. - Caesar Cipher.
- Array Analysis. Write a function that takes an array of numbers and returns an object with the following properties:
average, min, max,
andlength
.
- Javascript
- Node
- Jest
- VSCode
- ESLint
- Stylelint
- Github Actions
- Node ^10
- npm ^6
Clone the repo:
git clone https://github.com/simandebvu/javascript-unit-testing-practice.git
Inside the root folder of the project, install the node packages:
npm install
Go to the root folder and run the npm server script:
npm test
👤 Shingirayi Mandebvu
- Github: @simandebvu
- Twitter: @simandebvu
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
This project is MIT licensed.