Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tresor11/testing-practice-js
on this repository we explore some of the basics functionality of jest
https://github.com/tresor11/testing-practice-js
javascript jest tresor11
Last synced: 8 days ago
JSON representation
on this repository we explore some of the basics functionality of jest
- Host: GitHub
- URL: https://github.com/tresor11/testing-practice-js
- Owner: Tresor11
- Created: 2020-03-29T07:59:16.000Z (almost 5 years ago)
- Default Branch: development
- Last Pushed: 2024-06-16T11:07:24.000Z (7 months ago)
- Last Synced: 2024-12-18T15:50:23.253Z (18 days ago)
- Topics: javascript, jest, tresor11
- Language: JavaScript
- Size: 815 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testing-practice-js
The purpose of this project was to do testing practice for functions using jest. This is part of the [Ordin projects](https://www.theodinproject.com/courses/javascript/lessons/testing-practice) from the [microverse](https://www.microverse.org/) curriculum.
## Project requirements
The requirement for this project was to write 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](http://practicalcryptography.com/ciphers/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.## Prerequisites
To comfortably use this project, prior knowledge of the following is ideal
- Javascript
- Eslint
- Jest
- ES6### Setup
Run
~~~
git clone https://github.com/Tresor11/testing-practice-js.git
~~~
to clone this project to your local machine and then run.~~~
npm install
~~~
to install all the dependencies and modules that were used for this project.### Running tests
Run
~~~
npm run tests
~~~
to run the tests on your local machine👤 **Tresor**
- Github: [@Tresor11](https://github.com/Tresor11)
- Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
- Linkedin: [linkedin](https://linkedin.com/linkedinhandle)👤 **Phemia**
- Github: [@ampaire](https://github.com/ampaire)
- Twitter: [@AmpaPhem](https://twitter.com/AmpaPhem)
- Linkedin: [linkedin](https://linkedin.com/ampaire-phemia)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the [issues page](https://github.com/Tresor11/testing-practice-js/issues).
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- [Ordin](https://www.theodinproject.com/courses/javascript/lessons/testing-practice)
-