{"id":22036024,"url":"https://github.com/ashokdey/nodejs-unit-testing","last_synced_at":"2025-05-07T20:05:48.645Z","repository":{"id":42355621,"uuid":"174704229","full_name":"ashokdey/nodejs-unit-testing","owner":"ashokdey","description":"The repo for the code lab session of JSLovers meetup on 17th March 2019","archived":false,"fork":false,"pushed_at":"2023-01-03T17:42:50.000Z","size":1108,"stargazers_count":19,"open_issues_count":24,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T20:04:06.827Z","etag":null,"topics":["javascript","jest","mocha","nodejs","testing","unit-testing","workshop"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/ashokdey.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}},"created_at":"2019-03-09T14:26:45.000Z","updated_at":"2023-05-16T07:29:27.000Z","dependencies_parsed_at":"2023-02-01T08:30:38.514Z","dependency_job_id":null,"html_url":"https://github.com/ashokdey/nodejs-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/ashokdey%2Fnodejs-unit-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokdey%2Fnodejs-unit-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokdey%2Fnodejs-unit-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokdey%2Fnodejs-unit-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashokdey","download_url":"https://codeload.github.com/ashokdey/nodejs-unit-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949272,"owners_count":21830151,"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":["javascript","jest","mocha","nodejs","testing","unit-testing","workshop"],"created_at":"2024-11-30T10:31:55.162Z","updated_at":"2025-05-07T20:05:48.614Z","avatar_url":"https://github.com/ashokdey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Testing in Node.js\n\nThe repo for the code lab session of JSLovers meet-up on 17th March 2019! :blush:\nThe repository contains both the tests using ~~`Mocha`~~\u003csup\u003e1\u003c/sup\u003e and `Jest`, however I prefer Node.js testing using `Mocha` when it comes to `MongoDB` \u0026 `Mongoose`\n\n[![Build Status](https://travis-ci.org/ashokdey/nodejs-unit-testing.svg?branch=step-4-ci-cd)](https://travis-ci.org/ashokdey/nodejs-unit-testing) [![Coverage Status](https://coveralls.io/repos/github/ashokdey/nodejs-unit-testing/badge.svg?branch=step-4-ci-cd)](https://coveralls.io/github/ashokdey/nodejs-unit-testing?branch=step-4-ci-cd)\n\n![Intro Image](.github/0.png)\n\n## Agenda\n\n- SDLC\n- Testing\n- Coding Phase \u0026 Unit Testing\n- Unit Testing in Node.js\n- Test Driven Development\n- Code Coverage\n- CI/CD (Read the [Guide](Setup-For-CI.md))\n\n## A note on branches\n\nI planned to carry out the workshop in 4 steps. hence you can find 4 extra branches for this repo. Each branch contains the codebase in progressive steps. Codebase is splitted into\n\n- Step 1: Testing Functions\n  - Normal Functions\n  - Callbacks Functions\n  - Promise Functions\n  - `async- await` Functions\n- Step 2: Testing Classes\n- Step 3: How about TDD?\n- Step 4: Let's setup CI/CD (Refer this [Guide](Setup-For-CI.md) if you forget the steps)\n\n## Notes\n\n- ~\u003csup\u003e1\u003c/sup\u003eDue to lack of time I dropped the idea of Mocha, let's see when I can publish Mocha stuff~\n- Link to [slides, videos \u0026 images](https://drive.google.com/open?id=1y6jd2GDOaV2xDRk1y1lQSWF48X0e4pP4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokdey%2Fnodejs-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokdey%2Fnodejs-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokdey%2Fnodejs-unit-testing/lists"}