{"id":22825766,"url":"https://github.com/wlsf82/jest-unit-testing","last_synced_at":"2026-05-05T12:33:17.023Z","repository":{"id":83605322,"uuid":"454474841","full_name":"wlsf82/jest-unit-testing","owner":"wlsf82","description":"Projeto demo para a live 7 da playlist JavaScript para QAs do canal TAT no YouTube.","archived":false,"fork":false,"pushed_at":"2022-02-01T21:35:39.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T00:26:32.214Z","etag":null,"topics":["javascript","jest","js-para-qas","talking-about-testing","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wlsf82.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-02-01T17:02:31.000Z","updated_at":"2025-02-07T08:48:35.000Z","dependencies_parsed_at":"2023-07-08T19:00:11.957Z","dependency_job_id":null,"html_url":"https://github.com/wlsf82/jest-unit-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wlsf82/jest-unit-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fjest-unit-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fjest-unit-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fjest-unit-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fjest-unit-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlsf82","download_url":"https://codeload.github.com/wlsf82/jest-unit-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fjest-unit-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","js-para-qas","talking-about-testing","unit-testing"],"created_at":"2024-12-12T17:11:59.893Z","updated_at":"2026-05-05T12:33:17.004Z","avatar_url":"https://github.com/wlsf82.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript para QAs - _Unit Testing_\n\nProjeto exemplo para a [live #7](https://youtu.be/yTnUeaeIn0c) da playlist [JS para QAs](https://youtube.com/playlist?list=PL-eblSNRj0QH36XrwvGfhh14GjpG-ViS2) do [Canal Talking About Testing](https://www.youtube.com/c/talkingabouttesting) no YouTube.\n\n## Pré-requisitos\n\nÉ necessário ter o node.js e o npm instalados para rodar este projeto.\n\n\u003e Usei as versões `v16.13.2` e `8.3.2` dos sistemas citados acima e recomendo usar as mesmas ou versões mais recentes.\n\n## Instalação\n\nExecute `npm install` (ou `npm i` - versão curta) para instalar o Jest.\n\n## Testes\n\nExecute `npm test` (ou `npm t` - versão curta) para rodar os testes de unidade.\n\nApós executá-los, você deve ter um resultado com o seguinte.\n\n```sh\n\u003e jest-unit-testing@1.0.0 test\n\u003e jest --coverage\n\n PASS  ./index.spec.js\n  ✓ se a lista estiver vazia, a comissão é zero (2 ms)\n  ✓ calcula comissão quando só tem um item na lista\n  ✓ calcula comissão quando há mais de um item na lista (1 ms)\n  ✓ calcula comissão de 10%\n  ✓ calcula comissão de 15% (1 ms)\n  ✓ comissão exclusiva para o produto XP-0101\n\n----------|---------|----------|---------|---------|-------------------\nFile      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s\n----------|---------|----------|---------|---------|-------------------\nAll files |     100 |    91.66 |     100 |     100 |\n index.js |     100 |    91.66 |     100 |     100 | 12\n----------|---------|----------|---------|---------|-------------------\nTest Suites: 1 passed, 1 total\nTests:       6 passed, 6 total\nSnapshots:   0 total\nTime:        0.293 s, estimated 1 s\nRan all test suites.\n```\n\n## Suporte este projeto\n\nDeixe uma ⭐ para suportar este projeto. Obrigado!\n\n___\n\nFeito com 💛 por [Walmyr Filho](https://walmyrfilho.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fjest-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlsf82%2Fjest-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fjest-unit-testing/lists"}