Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geozi/javascript-jest
Showcases the use of Jest for performing unit tests.
https://github.com/geozi/javascript-jest
jest-test unit-testing vanilla-javascript
Last synced: 8 days ago
JSON representation
Showcases the use of Jest for performing unit tests.
- Host: GitHub
- URL: https://github.com/geozi/javascript-jest
- Owner: geozi
- Created: 2024-08-13T18:31:35.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T17:31:55.000Z (3 months ago)
- Last Synced: 2024-12-14T04:27:29.748Z (2 months ago)
- Topics: jest-test, unit-testing, vanilla-javascript
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# javascript-jest
![Unit testing demo project]( https://img.shields.io/badge/Demo_project-blue)### About the project
The project showcases the use of Jest for performing unit tests on plain JavaScript code.### Prerequisites
To run the tests, the following will be needed:
* Node.js (v20.11.1 or higher)### Dependencies
```
"devDependencies": {
"jest": "^29.7.0"
}
```### How to run (on Linux)
* Add ``` { "test": "jest --coverage" } ``` to the scripts section of the package-json file,
* Type ``` npm test ``` on the terminal, and
* Hit enter.