{"id":27358128,"url":"https://github.com/m0hanraj/social-comments","last_synced_at":"2026-05-10T06:42:05.087Z","repository":{"id":43377651,"uuid":"466103108","full_name":"m0hanraj/social-comments","owner":"m0hanraj","description":"Simple react app to render comments with React Testing Library based tests","archived":false,"fork":false,"pushed_at":"2022-03-04T15:48:39.000Z","size":294,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T23:56:56.246Z","etag":null,"topics":["jest","react","react-testing-library","reactjs","tdd","tdd-javascript"],"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/m0hanraj.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-03-04T11:49:23.000Z","updated_at":"2022-03-04T12:23:34.000Z","dependencies_parsed_at":"2022-09-02T18:31:48.402Z","dependency_job_id":null,"html_url":"https://github.com/m0hanraj/social-comments","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/m0hanraj%2Fsocial-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0hanraj%2Fsocial-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0hanraj%2Fsocial-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0hanraj%2Fsocial-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0hanraj","download_url":"https://codeload.github.com/m0hanraj/social-comments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647224,"owners_count":21139083,"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":["jest","react","react-testing-library","reactjs","tdd","tdd-javascript"],"created_at":"2025-04-12T23:56:57.653Z","updated_at":"2026-05-10T06:42:05.055Z","avatar_url":"https://github.com/m0hanraj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TDD with React Testing library\n\nThis repo contains a sample code for [TDD with React Testing Library](https://www.mohanraj.dev/blogs/tdd-with-react-testing-library-component-testing) blog.\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in your browser.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode and runs the tests that are set up using React Testing Library.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance.\n\n## Static API\n\nThe project uses static API to simulate the remote API back-end. I have used `json-server` to fake the API's and it reads data from `db.json`.\n\nTo run this service you need to install json-server using\n\n### `npm install -g json-server`\n\nRun below command from this repo to start the service\n\n### `json-server -p 4000 --watch db.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0hanraj%2Fsocial-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0hanraj%2Fsocial-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0hanraj%2Fsocial-comments/lists"}