Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 coverage

All 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