{"id":29328760,"url":"https://github.com/nicnocquee/rsc-testing","last_synced_at":"2026-05-03T23:38:05.532Z","repository":{"id":303294701,"uuid":"1015002804","full_name":"nicnocquee/rsc-testing","owner":"nicnocquee","description":"A sample project that shows how to test React server component","archived":false,"fork":false,"pushed_at":"2025-07-17T13:47:19.000Z","size":108,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T04:33:58.746Z","etag":null,"topics":["nextjs","react","reactservercomponents","testing","testing-library"],"latest_commit_sha":null,"homepage":"https://nico.fyi/blog/how-to-test-react-server-component","language":"TypeScript","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/nicnocquee.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,"zenodo":null}},"created_at":"2025-07-06T20:29:29.000Z","updated_at":"2025-07-18T16:18:51.000Z","dependencies_parsed_at":"2025-07-06T21:36:12.043Z","dependency_job_id":"720e0552-48e5-46b4-92b0-950df95207c1","html_url":"https://github.com/nicnocquee/rsc-testing","commit_stats":null,"previous_names":["nicnocquee/rsc-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicnocquee/rsc-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Frsc-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Frsc-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Frsc-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Frsc-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicnocquee","download_url":"https://codeload.github.com/nicnocquee/rsc-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Frsc-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["nextjs","react","reactservercomponents","testing","testing-library"],"created_at":"2025-07-07T22:37:03.861Z","updated_at":"2026-05-03T23:38:05.526Z","avatar_url":"https://github.com/nicnocquee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n\nThis is a sample project that shows how to test async React Server Components in Next.js using\n\n- this gist: https://gist.github.com/sroebert/a04ca6e0232a4a60bc50d7f164f101f6\n- Vitest\n- [React Testing Library](https://github.com/testing-library/react-testing-library#readme)\n\nHopefully there will be official support for this in the future.\n\n## The component\n\nThe component that is being tested is a [Greeting](./src/app/greeting.tsx) component that displays \"Good morning\" if the current time is before 12pm, and \"Good afternoon\" if the current time is after 12pm.\n\n## Running the tests\n\nThe test file can be found in [greeting.test.tsx](./src/app/greeting.test.tsx).\n\n```bash\nnpm run test\n```\n\nSo far this hack still works with Next.js 15.4.1 and React 19.1.0.\n\n## Blog Post\n\nRead the blog post [here](https://nico.fyi/blog/how-to-test-react-server-component).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Frsc-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicnocquee%2Frsc-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Frsc-testing/lists"}