Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ugioni/unit-tests-jest
Example to unit tests using Jest
https://github.com/ugioni/unit-tests-jest
coverage javascript jest nodejs test unit-testing
Last synced: about 1 month ago
JSON representation
Example to unit tests using Jest
- Host: GitHub
- URL: https://github.com/ugioni/unit-tests-jest
- Owner: ugioni
- License: mit
- Created: 2022-09-23T03:11:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-12T22:04:13.000Z (3 months ago)
- Last Synced: 2024-09-13T11:32:25.611Z (3 months ago)
- Topics: coverage, javascript, jest, nodejs, test, unit-testing
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 16
- Watchers: 1
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JEST Unit Tests
## GitHub Actions
[![Build and Tests](https://github.com/ugioni/unit-tests-jest/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/ugioni/unit-tests-jest/actions/workflows/node.js.yml)
## SonarCloud
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ugioni_unit-tests-jest&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ugioni_unit-tests-jest)
## Getting Started
In order to execute this project you must follow the steps below:
1. Install [Node JS](https://nodejs.org/) (version >= 20.x)
1. Run `npm install` to install all the project dependencies
1. Run `npm run test` to execute the entire test suite
1. Run `npm run coverage` to execute the entire test suite with coverageAll execution artifacts can be found in `./coverage`, if you want to remove these files run `npm run clean`.
## Project Structure
- src: source code
- test: unit test files