/javascript-unit-testing-practice

Practicing JavaScript Unit Testing Using Jest.

Primary LanguageJavaScriptMIT LicenseMIT

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

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

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Microverse

📝 License

This project is MIT licensed.