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: 11 days 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-02T14:01:48.000Z (21 days ago)
- Last Synced: 2025-04-12T23:14:02.165Z (11 days ago)
- Topics: coverage, javascript, jest, nodejs, test, unit-testing
- Language: JavaScript
- Homepage:
- Size: 68.4 KB
- Stars: 48
- Watchers: 1
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JEST Unit Tests
## GitHub Actions
[](https://github.com/ugioni/unit-tests-jest/actions/workflows/node.js.yml)
## SonarCloud
[](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