{"id":19945522,"url":"https://github.com/odilson-dev/testing-practice","last_synced_at":"2025-03-01T13:44:24.415Z","repository":{"id":229541241,"uuid":"776583449","full_name":"odilson-dev/testing-practice","owner":"odilson-dev","description":"Practicing TDD(Test Driven Development) from Odin","archived":false,"fork":false,"pushed_at":"2024-03-25T23:06:06.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T20:52:44.906Z","etag":null,"topics":["html-css-javascript","jest-tests","npm","tdd-javascript","test","theodinproject"],"latest_commit_sha":null,"homepage":"https://www.theodinproject.com/lessons/javascript-testing-practice","language":"HTML","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/odilson-dev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T22:44:55.000Z","updated_at":"2024-04-08T12:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"203a485b-2ecf-44cf-a23c-910523f62256","html_url":"https://github.com/odilson-dev/testing-practice","commit_stats":null,"previous_names":["odilsoncode/testing-practice","odilson-dev/testing-practice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Ftesting-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Ftesting-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Ftesting-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odilson-dev%2Ftesting-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odilson-dev","download_url":"https://codeload.github.com/odilson-dev/testing-practice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374515,"owners_count":19952544,"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":["html-css-javascript","jest-tests","npm","tdd-javascript","test","theodinproject"],"created_at":"2024-11-13T00:25:51.496Z","updated_at":"2025-03-01T13:44:24.392Z","avatar_url":"https://github.com/odilson-dev.png","language":"HTML","readme":"# Testing Practice with Jest\n\nThis project aims to practice testing JavaScript functions using Jest. It includes the implementation of several functions along with their respective tests.\n\n## Getting Started\n\nTo get started with this project, you'll need Node.js and npm (or yarn) installed on your machine.\n\n1. Clone this repository to your local machine.\n2. Install dependencies by running `npm install` or `yarn install`.\n3. Run tests using `npm run test` or `yarn run test`.\n\n## Functions Implemented\n\n1. **capitalize**: This function capitalizes the first character of a string.\n2. **reverseString**: This function reverses a given string.\n3. **calculator**: An object containing functions for basic arithmetic operations (addition, subtraction, division, and multiplication).\n4. **caesarCipher**: This function applies the Caesar cipher to a given string based on a shift factor.\n5. **analyzeArray**: This function takes an array of numbers and returns an object with properties: average, min, max, and length.\n\n## Testing\n\nEach function has corresponding test suites located in the `__tests__` directory. Tests are written using Jest.\n\n### Running Tests\n\nYou can run tests using the command `npm run test` or `yarn run test`. This will execute all test suites and display the results in your console.\n\n## Additional Notes\n\n- Ensure that you have followed the instructions for configuring Jest to handle ES6 import statements if you encounter any issues.\n\nHappy testing!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodilson-dev%2Ftesting-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodilson-dev%2Ftesting-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodilson-dev%2Ftesting-practice/lists"}