{"id":21413044,"url":"https://github.com/nascript/learn-unit-testing","last_synced_at":"2025-03-16T18:22:43.525Z","repository":{"id":44381222,"uuid":"512345636","full_name":"nascript/learn-unit-testing","owner":"nascript","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-13T15:20:41.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T05:14:52.654Z","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/nascript.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}},"created_at":"2022-07-10T04:39:19.000Z","updated_at":"2022-07-10T05:28:31.000Z","dependencies_parsed_at":"2022-07-14T13:20:54.868Z","dependency_job_id":null,"html_url":"https://github.com/nascript/learn-unit-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Flearn-unit-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Flearn-unit-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Flearn-unit-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Flearn-unit-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nascript","download_url":"https://codeload.github.com/nascript/learn-unit-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910763,"owners_count":20367544,"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-11-22T18:16:34.568Z","updated_at":"2025-03-16T18:22:43.499Z","avatar_url":"https://github.com/nascript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LEARN UNIT TESTING WITH JEST\r\n\r\n### Jest tidak support javascript module\r\n\r\n\u003cp\u003eoleh karena itu diperlukan babel js untuk membantu jest mengkonversi javascript module Es6 ke javascript versi yang lama yaitu common js \u003c/p\u003e\r\n\r\n\u003ca\u003e[LINK babel setup](https://babeljs.io/setup#installation)\u003c/a\u003e\r\n\r\n### CLI Dasar JEST\r\n- `npx jest` to run jest\r\n- `npx jest --testNamePattern \"nama/desc function test\"` to test by specifik description function test\r\n- `npx jest --runTestsByPath \"nama file test.js\"` to test by file test.js\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnascript%2Flearn-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnascript%2Flearn-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnascript%2Flearn-unit-testing/lists"}