An open API service indexing awesome lists of open source software.

https://github.com/simandebvu/javascript-unit-testing-practice

Practicing JavaScript Unit Testing Using Jest.
https://github.com/simandebvu/javascript-unit-testing-practice

Last synced: about 1 year ago
JSON representation

Practicing JavaScript Unit Testing Using Jest.

Awesome Lists containing this project

README

          

# PROJECT: TESTING PRACTICE





Logo

JEST : Testing


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,` and `multiply`.
- Caesar Cipher.
- Array Analysis. Write a function that takes an array of numbers and returns an object with the following properties: `average, min, max,` and `length`.

![screenshot](./app-screenshot.gif)

## Built With

- Javascript
- Node
- Jest
- VSCode
- ESLint
- Stylelint
- Github Actions

## Prerequisites

- Node ^10
- npm ^6

## Running Locally

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`

## Authors

👤 **Shingirayi Mandebvu**

- Github: [@simandebvu](https://github.com/simandebvu)
- Twitter: [@simandebvu](https://twitter.com/simandebvu)
- Linkedin: [linkedin](https://linkedin.com/in/simandebvu)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](issues/).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

- Microverse

## 📝 License

This project is [MIT](lic.url) licensed.