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

https://github.com/bushmusi/unit-test

This project is to practice unit testing using Jest
https://github.com/bushmusi/unit-test

Last synced: about 1 month ago
JSON representation

This project is to practice unit testing using Jest

Awesome Lists containing this project

README

          

# Unit Testing Practice
This is for practising Unit Testing using Javascript.

In this project, I write a few practical tests for JavaScript functions using the Jest library. I have followed the AAA pattern to make the tests easier for other developers to read and understand. I also try to use the TDD approach in practice..

## Built With

- Javascript
- Linters

## Getting Started
To get a local copy up and running follow these simple example steps.

## Prerequisites
- Have a good knowledge on how to parse UI designs
- Have VSCode or other text editor installed. [Link to download VSCode](https://code.visualstudio.com/download)
- Install node package. [Link to download node](https://nodejs.org/en/download/)
- Have git installed.[Link to download git](https://git-scm.com/downloads)
- Create a github repository.

## Setup
- `git clone ttps://github.com/bushmusi/unit-test.git`
- `cd unit-test/`
- Install packages: `npm install`
- Start Live Server: `npm test`

## Run tests

For tracking linters errors locally, you need to follow these steps:

- For tracking linter errors in Javascript file run:

1. `npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x`
2. `npx eslint .`

## Deployment

- Use GitHub pages to deploy website
- For more information about publishing sources, see [About github pages](https://pages.github.com/)

## Author

👤 **Bushra**

- GitHub:
- [Bushra](www.github.com/bushmusi)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

- Microverse
- Code Reviewers

## 📝 License

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