{"id":23338199,"url":"https://github.com/aman3096/modular-login-sdk","last_synced_at":"2026-04-12T13:44:04.101Z","repository":{"id":57300632,"uuid":"339975725","full_name":"aman3096/modular-login-sdk","owner":"aman3096","description":"test driven development using jest and webpack config for treating es6 modules and syntax.","archived":false,"fork":false,"pushed_at":"2021-02-25T09:16:14.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T06:12:39.666Z","etag":null,"topics":["babel","javascript","javascript-library","jest","jest-tests","js","json","jsx","tdd","tdd-javascript","tdd-kata","tdd-sample","webpack"],"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/aman3096.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":"2021-02-18T07:56:21.000Z","updated_at":"2021-02-25T09:16:16.000Z","dependencies_parsed_at":"2022-09-10T14:00:24.020Z","dependency_job_id":null,"html_url":"https://github.com/aman3096/modular-login-sdk","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/aman3096%2Fmodular-login-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aman3096%2Fmodular-login-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aman3096%2Fmodular-login-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aman3096%2Fmodular-login-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aman3096","download_url":"https://codeload.github.com/aman3096/modular-login-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aman3096%2Fmodular-login-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258938160,"owners_count":22780994,"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":["babel","javascript","javascript-library","jest","jest-tests","js","json","jsx","tdd","tdd-javascript","tdd-kata","tdd-sample","webpack"],"created_at":"2024-12-21T03:12:43.753Z","updated_at":"2026-04-12T13:44:04.073Z","avatar_url":"https://github.com/aman3096.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TDD Examples and typedef explaining and Login module\ntest driven development using jest and webpack config for treating es6 modules and syntax and mock login scenario done using a mock server.\nThis repository explains about the various test driven development scenarios that are built using Jest (a javascript testing library) \n## Usage of Login.js in other projects\n In order to use the Login.js file in other projects, use the path \"modular-login-sdk/src/login\" in order to use the login.js\n \n ### Example of usage of login.js\n Login.js has one function name doLogin() which takes 3 params -userName, password and the login url (mock server) and has a return type of boolean\n  ```\n  doLogin( userName, pass, mockServerURL)  //returns true or false on the basis of the 3 params\n  userName- String where userName needs to be provided\n  password - String where password would be stored\n  mockServerURL - String where URL of mock server is kept\n  ```\n #### calculator.js\n   This file has business logic for writing of the add function. For now I have focussed more on the coding kata for tdd and later scenarios I added more real- life scenarios like login.\n\n  ## calculator coding kata -\n   #### calculator.test.js\n According to Uncle bobs TDD rule we first write test file to intentionally make it fail then we will write the business logic in order to pass. this file\n uses test() method of jest and checks whether the adddition method is present in calculator.js and checks for a specific precise checks.\n 1. It uses async-await for async programming construct\n 2. expect().toBe() are class methods used from jest library\n     \n#### calculator.js\nThis file has business logic for writing of the add function. For now I have focussed more on the coding kata for tdd and later scenarios I added more real-life scenarios like login.\n\n## file.test.js and file.js\n  ### file.js\n   The comments seen in this file are the format for the JSDoc format which does dynamic typechecking and later on we can generate documentation using      documentation serve\nThis function returns the addition of 2 number  \n   ### file.test.js\n   This file uses various functions from jest library as to check for TDD practice\n      \n## fizzbuzz.test.js and fizzbuzz.js\n   This is a solution for fizzbuzz coding kata using TDD. kata link https://codingdojo.org/kata/FizzBuzz/\n\n## greeting.test.js and greeting.js\n   This is a solution for greeting coding kata using TDD.Problem statement here https://github.com/testdouble/contributing-tests/wiki/Greeting-Kata\n\n## login.test.js and login.js\n  This uses a mock server to check for login of the user using TDD\n    It uses basic business logic for checking if the correct user has logged in this time.\n       \n## JSDoc and Documentation\n  JsDoc format used by documentation.js enables the developer to check about the module on what does the params type would be? Also if we provide wrong type for a function defined then it must be showing red underline for determining the users input.\n  For enabling this  \n    1. we must configure our IDE first. In our project, I have done and included in the .vscode folder settings.\n    2. use documenation.js format in comments. For more info you can refer its documentation on https://github.com/documentationjs/documentation/blob/master/docs/GETTING_STARTED.md\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faman3096%2Fmodular-login-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faman3096%2Fmodular-login-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faman3096%2Fmodular-login-sdk/lists"}