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
- Host: GitHub
- URL: https://github.com/bushmusi/unit-test
- Owner: bushmusi
- Created: 2022-03-02T19:01:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T21:53:31.000Z (over 3 years ago)
- Last Synced: 2025-02-26T09:46:07.250Z (8 months ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.