{"id":23314894,"url":"https://github.com/catgsmith/jest-tutorial","last_synced_at":"2025-06-22T11:34:11.500Z","repository":{"id":199577268,"uuid":"375059622","full_name":"catgsmith/Jest-Tutorial","owner":"catgsmith","description":"Various Jest Tests","archived":false,"fork":false,"pushed_at":"2021-09-15T08:15:34.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T02:47:38.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/catgsmith.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}},"created_at":"2021-06-08T15:32:21.000Z","updated_at":"2021-09-15T08:15:37.000Z","dependencies_parsed_at":"2023-10-11T02:41:54.048Z","dependency_job_id":null,"html_url":"https://github.com/catgsmith/Jest-Tutorial","commit_stats":null,"previous_names":["catgsmith/jest-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catgsmith/Jest-Tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgsmith%2FJest-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgsmith%2FJest-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgsmith%2FJest-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgsmith%2FJest-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catgsmith","download_url":"https://codeload.github.com/catgsmith/Jest-Tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catgsmith%2FJest-Tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261288264,"owners_count":23136036,"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","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":[],"created_at":"2024-12-20T15:19:06.884Z","updated_at":"2025-06-22T11:34:06.463Z","avatar_url":"https://github.com/catgsmith.png","language":"JavaScript","readme":"# Jest\n\nJest is a delightful JavaScript Testing Framework\n\n## Installation\n\nInstall jest locally\u000b\u000b\n\n```bash\n$ mkdir jest_tutorial\n$ cd jest_tutorial\n$ npm init -y\n$ npm install --save-dev jest\u000b\n```\n\nIn package.json file set `scripts.test` property to `\"jest\"`\n\n# Axios\nFor youTube tutorial `Jest Crash Course - Unit Testing in JavaScript`,\nusing axios to mock up aysnc tests in `function.js`.\n\n```bash\n$ npm install --save-dev axios\n```\n\n\n## Usage\n\n```bash\nnpm test \n```\n\n```bash\nnpm test mocks\n```\n\n```bash\nnpm test spy-mock-implementation.test\n```\n\n```bash\n\\\\ Jest Crash Course - Unit Testing in JavaScript\nnpm test functions.test \nnpm test reverseString.test\nnpm test chunk.test\nnpm test anagram.test\n```\n\n## Resources\nhttps://jestjs.io/docs/en/getting-started.html\n\nJest Crash Course - Unit Testing in JavaScript\nTutorial : https://www.youtube.com/watch?v=7r4xVDI2vho\n\nTesting with Jest: From zero to hero\nTutorial : https://www.youtube.com/watch?v=NHMIn723hQY\nSee : zeroToHero.test.js\n\nBlog: Jest .fn() and .spyOn() spy/stub/mock assertion reference\nhttps://codewithhugo.com/jest-fn-spyon-stub-mock/\n\n## License\n[MIT](https://claddaghcode.com/licenses/mit/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatgsmith%2Fjest-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatgsmith%2Fjest-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatgsmith%2Fjest-tutorial/lists"}