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: 3 months 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T17:31:55.000Z (8 months ago)
- Last Synced: 2025-02-07T06:23:26.443Z (5 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
### 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.