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

https://github.com/kanzatahreem/jest-testing

Wrote a few practical tests for JavaScript functions using the Jest library by following the AAA pattern to make your tests easier for other developers to read and understand. Used the TDD approach in practice.
https://github.com/kanzatahreem/jest-testing

javascript jest tdd unit-testing

Last synced: 3 months ago
JSON representation

Wrote a few practical tests for JavaScript functions using the Jest library by following the AAA pattern to make your tests easier for other developers to read and understand. Used the TDD approach in practice.

Awesome Lists containing this project

README

          

![](https://img.shields.io/badge/Microverse-blueviolet)

# Jest Testing

> Wrote a few practical tests for JavaScript functions using the [Jest](https://jestjs.io/) library by folowing the [AAA pattern](https://github.com/goldbergyoni/javascript-testing-best-practices#-%EF%B8%8F-12-structure-tests-by-the-aaa-pattern) to make your tests easier for other developers to read and understand. Applied [Test Driven Development](https://medium.com/@gondy/the-importance-of-test-driven-development-f80b0d02edd8) (TDD) approach in practice. Tested the functions for

- _[String Length](https://github.com/KanzaTahreem/Jest-Testing/blob/main/tests/stringlength.test.js)_
- _[Resvere String](https://github.com/KanzaTahreem/Jest-Testing/blob/main/tests/reversestring.test.js)_
- _[Simple Calculator](https://github.com/KanzaTahreem/Jest-Testing/blob/main/tests/calculator.test.js)_
- _[Capitalize a String](https://github.com/KanzaTahreem/Jest-Testing/blob/main/tests/capitalize.test.js)_

## Built With

- HTML
- CSS
- JavaScript
- Webpack

## Getting Started

To get a local copy, run the fllowing command.

- `git clone git@github.com:KanzaTahreem/Jest-Testing.git`

### Prerequisites

- node.js (10.13.0 (LTS))
- git

### Install

- `npm install`

### Usage

- `npm start`

## Authors

👤 **Author**

- GitHub: [@KanzaTahreem](https://github.com/KanzaTahreem)
- Twitter: [@kanza_tahreem](https://twitter.com/kanza_tahreem)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/kanza-tahreem/)

## Show your support

Give a ⭐️ if you like this project!

## 📝 License

This project is [MIT](./LICENSE) licensed.