https://github.com/thedvlprs/jest-testing
JavaScript unit testing using Jest
https://github.com/thedvlprs/jest-testing
javascript jest-tests unit-testing
Last synced: 3 months ago
JSON representation
JavaScript unit testing using Jest
- Host: GitHub
- URL: https://github.com/thedvlprs/jest-testing
- Owner: thedvlprs
- Created: 2019-12-11T12:29:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T19:12:52.000Z (4 months ago)
- Last Synced: 2025-03-08T20:20:34.003Z (4 months ago)
- Topics: javascript, jest-tests, unit-testing
- Language: JavaScript
- Homepage:
- Size: 1.11 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Unit Testing using ***Jest***
[](https://opensource.org/licenses/MIT) [](https://GitHub.com/Naereen/StrapDown.js/graphs/contributors/) [](https://github.com/ellerbrock/open-source-badges/) [](https://saythanks.io/to/kennethreitz)
### **Tools**:
- [Visual Studio Code](https://code.visualstudio.com/)
- [Node JS](https://nodejs.org/en/)
- [A guide to unit testing in JS](https://github.com/mawrkus/js-unit-testing-guide/)### **devDependencies**:
- **jest**
### Commands:
```npm init -y```
```npm i -D jest```
```npm test```
---
``` // functions.js > to check test x PASS ```
```javascript
const functions = {
add: (num1, num2) => num1 + num2
};module.exports = functions;
```
``` // functions.js > to check test x FAIL ```
```javascript
const functions = {
add: (num1, num2) => num1 + num2 + 1
};module.exports = functions;
```
