logo

Testing practice with Jest

📗 Table of Contents

📖 [Testing practice with Jest]>

[Testing practice with Jest] In this exercise, the purpose is to write a few practical tests for JavaScript functions using the Jest library, follow the AAA pattern to make the tests easier for other developers to read and understand and using the TDD approach in practice.

🛠 Built With

By Microverse Student, Alexis

Client
Server
Database

Key Features

  • [Write a function stringLength(string) that takes any string as an argument and returns its characters count.]
  • [Write a function reverseString(string) function. It should take a string as an argument and return it reversed.]
  • [Write a simple calculator class or object, which will have 4 methods: add, subtract, divide, and multiply.]
  • [Start by writing a test for a capitalize(string) function. Your test should make sure that this function takes a string as an argument and returns that string with the first character capitalized.]

(back to top)

🚀 Live Demo

  • Not available

(back to top)

💻 Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need:

If you don't have git installed on your machine you can download it from here.

Setup

Clone this repository to your desired folder:

Once you have git installed on your machine you can clone your project by running the command below to clone your project to your local machine

git clone <https://github.com/AlexisJW/testing-practice-with-jestt>

Alternatively, you can download the zip file of your project by clicking on the Code button on the right side of your project page and clicking on Download ZIP

Usage

To run the project, execute the following command: Locate the folder where you cloned your project to and open the index.html file in your browser to view the project.

Run tests

To run tests, run the following command:

  • npm run test

👥 Authors

👤 Jean Walner ALEXIS

(back to top)

🔭 Future Features

  • [Make some changes]\

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, let me know in my email: jeanwalneralexis@yahoo.com, please!

(back to top)

🙏 Acknowledgments

  • Microverse
  • Coding Partners
  • Code Reviewers

(back to top)

❓ FAQ

  • [How much times did you spend to build this project?]

    • [Only 5 hours.]

(back to top)

📝 License

This project is MIT

(back to top)