{"id":22358337,"url":"https://github.com/thedvlprs/jest-testing","last_synced_at":"2025-10-14T19:39:14.553Z","repository":{"id":42961760,"uuid":"227361120","full_name":"thedvlprs/jest-testing","owner":"thedvlprs","description":" JavaScript unit testing using Jest","archived":false,"fork":false,"pushed_at":"2025-09-13T14:15:01.000Z","size":669,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T16:25:13.478Z","etag":null,"topics":["javascript","jest-tests","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedvlprs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-11T12:29:54.000Z","updated_at":"2025-09-13T14:14:59.000Z","dependencies_parsed_at":"2024-02-08T05:22:47.242Z","dependency_job_id":"dfa4f47f-7ade-4ed8-a121-5f58e3e54681","html_url":"https://github.com/thedvlprs/jest-testing","commit_stats":null,"previous_names":["thedvlprs/jest-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedvlprs/jest-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Fjest-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Fjest-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Fjest-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Fjest-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedvlprs","download_url":"https://codeload.github.com/thedvlprs/jest-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Fjest-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020654,"owners_count":26086898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","jest-tests","unit-testing"],"created_at":"2024-12-04T15:14:19.289Z","updated_at":"2025-10-14T19:39:14.532Z","avatar_url":"https://github.com/thedvlprs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Unit Testing using ***Jest***\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub contributors](https://img.shields.io/github/contributors/Naereen/StrapDown.js.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/contributors/) [![Open Source Love png1](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/) [![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/kennethreitz)\n\n### **Tools**:\n\n- [Visual Studio Code](https://code.visualstudio.com/)\u003cbr /\u003e\n- [Node JS](https://nodejs.org/en/)\u003cbr /\u003e\n- [A guide to unit testing in JS](https://github.com/mawrkus/js-unit-testing-guide/)\n\n### **devDependencies**:\n\n- **jest**\n\n### Commands:\n\n```npm init -y```\n\n```npm i -D jest```\n\n```npm test```\n\n---\n\n``` // functions.js \u003e to check test x PASS ```\n\n```javascript\nconst functions = {\n  add: (num1, num2) =\u003e num1 + num2\n};\n\nmodule.exports = functions;\n\n```\n![](img/success.png)\n\n``` // functions.js \u003e to check test x FAIL ```\n\n```javascript\nconst functions = {\n  add: (num1, num2) =\u003e num1 + num2 + 1\n};\n\nmodule.exports = functions;\n\n```\n\n![](img/fail.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedvlprs%2Fjest-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedvlprs%2Fjest-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedvlprs%2Fjest-testing/lists"}