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.
- Host: GitHub
- URL: https://github.com/kanzatahreem/jest-testing
- Owner: KanzaTahreem
- License: mit
- Created: 2022-10-04T11:43:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T09:50:45.000Z (over 3 years ago)
- Last Synced: 2025-01-08T22:38:15.904Z (over 1 year ago)
- Topics: javascript, jest, tdd, unit-testing
- Language: JavaScript
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# 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.